0

enter image description here

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.

IAmGroot
  • 13,760
  • 18
  • 84
  • 154

2 Answers2

0

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

Harry T.
  • 3,478
  • 2
  • 21
  • 41
0

You can try to enable multiDex support, take a look at my answer here: Android Studio DexIndexOverflowException: method ID not in

Community
  • 1
  • 1
xxx
  • 3,315
  • 5
  • 21
  • 40