2

when in create new project in android studio i get this error

"Out of memory: Java heap space. Configure Gradle memory settings using '-Xmx' JVM option (e.g. '-Xmx2048m'.)

Please fix the project's Gradle settings.

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
Safi Emile
  • 21
  • 1
  • 2

1 Answers1

2

In my case Invalidate cache and restart the android studio(which is automatically restarted) then an error will go after restarting the android studio

File-> Invalidate cache/restart-> Invalidate and restart

enter image description here

then enter image description here

I hope you will find the answer... please share your feedback

M Azam Khan
  • 302
  • 3
  • 15