Adobe Creative SDK

Follow

Android - Java heap space error

If you encounter a compilation error like this:

 
    
UNEXPECTED TOP-LEVEL ERROR:
    java.lang.OutOfMemoryError: Java heap space
            at com.android.dx.cf.code.Ropper.(Ropper.java:395)
            at com.android.dx.cf.code.Ropper.convert(Ropper.java:348)
            ...
    

Increase the maximum java heap size in your build.gradle file inside the android.dexOptions container:

 
    
android {
    // ...

    dexOptions {
        javaMaxHeapSize "4g"
    }
}
    
Was this article helpful?
0 out of 0 found this helpful

Comments

Powered by Zendesk