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,538
  • 18
  • 80
  • 152

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

Truong Hieu
  • 3,309
  • 2
  • 20
  • 37
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
Huy
  • 3,262
  • 5
  • 19
  • 37