Build time now is about ~ 2-4 minutes.
I use about 11 libraries provided through Gradle.
I have the following set:
buildTypes { debug { multiDexEnabled = true applicationIdSuffix ".debug" minifyEnabled false proguardFile 'proguard-rules.pro' } } dexOptions { javaMaxHeapSize "4096M" preDexLibraries false jumboMode = true incremental = true }
Gradle: Offline mode
I have the following setting in Gradle.properties org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
In global properties, I:
org.gradle.daemon=true org.gradle.parallel=true org.gradle.configureondemand=true
I looked through every article I can find on it on Google / Stackoverflow.
Is there a way to speed up the process to less than 1 minute?
August 6, 2015 Patch
It really helped speed up the process for me.
gradle -wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-all.zip
build.gradle project dependencies
classpath 'com.android.tools.build:gradle:1.3.0'
August 9, 2015 Patch
I found that using Protoc for Android turned out to be very slow. I switched to Wire and it took a compilation time of 2 minutes. up to 10 s-30 s.
performance android gradle
Sherlock
source share