Skip to content Skip to sidebar Skip to footer

Increasing The Gradle Heap Size

Whenever I try to make the build of the app , gradle takes too much of time and there comes a message showing that you should increase the Gradle size to 3072 MB , currently it is

Solution 1:

Just add

 android {
 ....
 dexOptions {
    // Prevent OutOfMemory with MultiDex during the build phase
    javaMaxHeapSize "4g"
  }
}

in your build.gradle file

Post a Comment for "Increasing The Gradle Heap Size"