Android Jack out of memory
•
Android
I'm testing the new compilation chain to start using lambda
My build.gradle file contains:
android {
...
compileSdkVersion 23
buildToolsVersion "24 rc3"
dexOptions {
jumboMode true
}
defaultConfig {
applicationId "my.app.id"
minSdkVersion 14
targetSdkVersion 23
multiDexEnabled true
jackOptions {
enabled true
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
I'm using Android studio 2.1.1
When I build an application, compilation takes some time and ends with an out of memory error:
resolvent:
I managed to solve the problem setting:
org.gradle.jvmargs=-Xmx2048M
In the gradle.properties file
Check here for more information about settings
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码