Mobile/Trouble shooting

An error when creating new project in android studio

옥탑방람보 2014. 12. 31. 11:29

Every time I create new project i get this error:

Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.

-->

Start Android Studio, close any open project.

On the right side, click on Configure -> Settings.

On the left side, in Compiler->Gradle set VM Options to "-Xmx512m" (without quotes)

Press OK, then create a project. Worked for me.