Okay, so I finally finished creating my first application that I spent a month building. And I went to build the APK so I can upload it to the Play Store and it hit me with this error.Error Image
Asked
Active
Viewed 68 times
-3
-
1Possible duplicate of [Android Studio Google JAR file causing GC overhead limit exceeded error](https://stackoverflow.com/questions/25013638/android-studio-google-jar-file-causing-gc-overhead-limit-exceeded-error) – Gino Mempin Aug 21 '17 at 04:23
2 Answers
0
I think it's because you've reached JVM maximum heap size.
Try add this to your app build.gradle file:
android {
...
dexOptions {
jumboMode = true
javaMaxHeapSize "4g"
}
}

Derrick Luo
- 31
- 4