Close

Android Application Heap Size..

  • Home
  •  / 
  • ANDROID
  •  / 
  • Android Application Heap Size..

Android Application Heap Size..

Add more memory for heap size problem.

Soution –

Add in Gradle “Module : app”

dexOptions {
javaMaxHeapSize “2048M”
}

Example:

android {

dexOptions {
javaMaxHeapSize “2048M”
}
compileSdkVersion 25
buildToolsVersion “25.0.2”
defaultConfig {
applicationId “s3.demo_map_navigation”
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName “1.0”
testInstrumentationRunner “android.support.test.runner.AndroidJUnitRunner”
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’
}
}
}

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *