From 36d7c09a8227fbb3ec1a1dcf20bbfa9b3a284227 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Thu, 27 Feb 2020 15:25:35 +0100 Subject: [PATCH] dexOptions --- app/build.gradle | 3 +++ gradle.properties | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 0b5bf0ba..8c5556fd 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -149,6 +149,9 @@ android { multiDexEnabled true } dexOptions { + incremental false + javaMaxHeapSize "2048M" + preDexLibraries = false jumboMode true } productFlavors { diff --git a/gradle.properties b/gradle.properties index 027ef9db..03440afb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,12 +10,14 @@ # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. # Default value: -Xmx10248m -XX:MaxPermSize=256m -# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 +org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects -# org.gradle.parallel=true +org.gradle.parallel=true + +org.gradle.configureondemand=true android.useAndroidX=true android.enableJetifier=true