love li fang fang forever

Android开发工具大全

• Theory

org.gradle.jvmargs=-Xmx4608m -XX:MaxPermSize=1024m -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.daemon=true

org.gradle.parallel=true

https://stackoverflow.com/questions/35224255/to-run-dex-in-process-the-gradle-daemon-needs-a-larger-heap-it-currently-has-9

android { // … dexOptions { dexInProcess = false } }

dexOptions { preDexLibraries true javaMaxHeapSize “3g” incremental true dexInProcess = true }

dexOptions { javaMaxHeapSize “4g” }

    lintOptions {
        checkReleaseBuilds false
        abortOnError false
    }