Please see the image above.
How can I resolve this error?
My Windows PC has 4 GB RAM and only 6GB of available space in my C Drive.
Please see the image above.
How can I resolve this error?
My Windows PC has 4 GB RAM and only 6GB of available space in my C Drive.
You cannot set max heap size >= your pc ram. Decrease it.
Open build.gradle
Find
dexOptions { incremental true javaMaxHeapSize "4g" }
change 4g
to 1g
or 2g
You can try to enable multiDex support, take a look at my answer here: Android Studio DexIndexOverflowException: method ID not in