From 9913fbe5d7f774f7b197f5f45a1b23349a38d4d4 Mon Sep 17 00:00:00 2001 From: Hans Hazelius Date: Sat, 5 Mar 2016 14:49:33 +0100 Subject: [PATCH] Step android gradle plugin version to 1.5.0 Gradle 2.8 require Android Gradle plugin version 1.2.0 or newer. Upgrade plugin version to 1.5.0. Add multiDex support to prevent DexIndexOverflowException. --- build.gradle | 2 +- mobile/build.gradle | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 59f26f0f566..3e42892f910 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:1.0.0' + classpath 'com.android.tools.build:gradle:1.5.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } diff --git a/mobile/build.gradle b/mobile/build.gradle index 829b5b6a0c9..c13e1ece274 100755 --- a/mobile/build.gradle +++ b/mobile/build.gradle @@ -8,6 +8,7 @@ android { applicationId "org.openhab.habdroid" minSdkVersion 15 targetSdkVersion 21 + multiDexEnabled true } buildTypes { release { @@ -38,4 +39,5 @@ dependencies { compile 'com.loopj:android-smart-image-view:1.0.0' compile 'com.google.code.gson:gson:2.3.1' compile 'com.github.shell-software:fab:1.1.0' + compile 'com.android.support:multidex:' }