Android Studio Gradle problems

 

If you get these kinds of errors:

Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Then the solution for me was this:

Control Panel
System
Advanced(tab)
Environment Variables
System Variables
New
Variable name: _JAVA_OPTIONS
Variable value: -Xmx512M

The above is thx to this post: http://www.savinoordine.com/android-studio-gradle-windows-7/. Works for Windows 8.1 + Android Studio 1.0.2

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s