Home Diary Blog Photo Community Open Source
gradle.properties for mac

vim .gradle/gradle.properties

开启并行编译

org.gradle.parallel=true

开启守护进程

org.gradle.daemon=true

按需编译

org.gradle.configureondemand=true

设置编译jvm参数

org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

设置代理

systemProp.http.proxyHost=127.0.0.1

systemProp.http.proxyPort=10384

systemProp.https.proxyHost=127.0.0.1

systemProp.https.proxyPort=10384

开启JNI编译支持过时API

android.useDeprecatedNdk=true