From: Gustavo Martin Morcuende Date: Mon, 29 Aug 2016 20:51:31 +0000 (+0200) Subject: Since last upgrade build requires multi dex, also be aware Jack requires a lot of... X-Git-Tag: weatherinformation-1.2~7 X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=906292a7141f3938b2987ffe3bd71e4017f69183;p=AndroidWeatherInformation Since last upgrade build requires multi dex, also be aware Jack requires a lot of memory. --- diff --git a/app/build.gradle b/app/build.gradle index cb94e00..6e6689f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -18,9 +18,13 @@ android { testApplicationId "name.gumartinm.weather.information.test" testInstrumentationRunner "android.test.InstrumentationTestRunner" + // WARNING: Jack requires a lot of memory :( jackOptions { enabled true } + // Enabling multidex support. Since the last upgrade my application does not compile + // without multi dex :( + multiDexEnabled true } buildTypes { release { @@ -47,4 +51,5 @@ dependencies { compile 'com.google.android.gms:play-services:+' compile 'com.fasterxml.jackson.core:jackson-core:2.3.3' compile 'com.jakewharton.timber:timber:2.5.0' + compile 'com.android.support:multidex:+' } diff --git a/app/src/main/java/name/gumartinm/weather/information/app/WeatherInformationApp.java b/app/src/main/java/name/gumartinm/weather/information/app/WeatherInformationApp.java index b5e438d..f076ad3 100644 --- a/app/src/main/java/name/gumartinm/weather/information/app/WeatherInformationApp.java +++ b/app/src/main/java/name/gumartinm/weather/information/app/WeatherInformationApp.java @@ -17,6 +17,7 @@ package name.gumartinm.weather.information.app; import android.app.Application; import android.content.Context; +import android.support.multidex.MultiDex; import com.google.android.gms.analytics.GoogleAnalytics; import com.google.android.gms.analytics.HitBuilders; @@ -48,6 +49,12 @@ public class WeatherInformationApp extends Application { } } + @Override + protected void attachBaseContext(Context base) { + super.attachBaseContext(base); + MultiDex.install(this); + } + private static class GoogleAnalyticsTrackers { private enum TrackerName {