I have problem with compile android application.
This is my error:
java.lang.OutOfMemoryError: Java heap space
and
> com.android.tools.r8.CompilationFailedException: Compilation failed to complete
I set javaMaxHeapSize to maximum:
dexOptions {
javaMaxHeapSize "4g"
}
Project is compiling but even then after one hour it goes with errors.
How could I solve this issue?