0

I'm just trying to create my first android studio project with a blank activity but i get this error while trying : enter image description here

I found on this link that a possible solution is to "

Run the JVM with -XX:MaxHeapSize=256m (or any big number), and possibly -Xmx512m" but I don't know how to do that ? I use windows 7

Community
  • 1
  • 1
Neo
  • 696
  • 1
  • 14
  • 33
  • Search for key phrases in the error message. There is a wealth of information out there on this subject. – djv Feb 01 '15 at 21:44
  • possible duplicate of [Could not reserve enough space for object heap](http://stackoverflow.com/questions/4401396/could-not-reserve-enough-space-for-object-heap) – djv Feb 01 '15 at 21:44
  • I have set the path to the JDK correctly so I don't understand why i get this error – Neo Feb 01 '15 at 21:45
  • look at the accepted answer in the duplicate i pasted. if not you can just search for *Could not reserve enough space for object heap*. Searching google for the error message usually helps. – djv Feb 01 '15 at 21:47
  • Ok how can I " Run the JVM with -XX:MaxHeapSize=256m (or any big number), and possibly -Xmx512m " ? I use windows 7 – Neo Feb 01 '15 at 21:47
  • Gradle is fussy. Ensure you have set %java_home% and not just %path% – alib_15 Feb 01 '15 at 22:49

0 Answers0