Last active
February 21, 2018 02:36
-
-
Save PepDevils/d713273bf9da880b27ae4fe559b5f5a6 to your computer and use it in GitHub Desktop.
Faster gradle compile for android
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//link: | |
// https://medium.com/@kevalpatel2106/how-to-decrease-your-gradle-build-time-by-65-310b572b0c43#.4rmzrcuj9 | |
// https://gradle.org/install | |
//no terminal depois de ter o device instalado uma vez, usar | |
./gradlew android:assembleDebug --profile --configure-on-demand --daemon | |
// or this "app" root file name: | |
./gradlew app:assembleDebug --profile --configure-on-demand --daemon | |
//no ficheiro "gradle-wrapper.proporties", utilizar versão mais actualizada em fevereiro de 2017 é: | |
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip | |
//no ficheiro "gradle.properties", ou no sistema utilizar: | |
#Enable daemon | |
org.gradle.daemon=true | |
# Try and findout the best heap size for your project build. | |
org.gradle.jvmargs=-Xmx3072m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 | |
# Modularise your project and enable parallel build | |
org.gradle.parallel=true | |
# Enable configure on demand. | |
org.gradle.configureondemand=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment