density { enable false } } Disable multi-APK generation •Multiple smaller APKs that target specific device configurations for release •Not needed during debug or development phase
javaMaxHeapSize “4g” } } Use DEX options •Android uses DEX instead of bytecode •Builds are generated faster •Specifies maximum memory allocation for Dex compiler
memory •Dex compiler runs within the build process, rather than separate VM-process •Enough memory provided by default in Android Studio 2.1+ Gradle arguments (gradle.properties)