Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android-Studio : Error: Could not create the Java Virtual Machine

Tags:

I have just installed Android - studio today. First I have to install jdk7 for this IDE.

After that only I was able to launch IDE.

Now When I am trying to create new project, just getting error as shown in below image.

enter image description here

Can anybody please help me.

What is missing from my side?

like image 564
Nirav Shah Avatar asked May 16 '13 14:05

Nirav Shah


1 Answers

In my case, I changed below file to modify vm heap option.

C:\Program Files\Android\android-studio\bin\studio.exe.vmoptions 

I increased -Xms128m to -Xms512m and restarted Android Studio.

After that, I could go to next step.

like image 60
nansjlee Avatar answered Sep 20 '22 17:09

nansjlee