This question already has an answer here:
when i started android studio i get this error:
Failed to import new Gradle project: Could not fetch model of type 'IdeaProject' using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'.
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://gradle.org/docs/1.6/userguide/gradle_daemon.html
Please read below process output to find out more:
-----------------------
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.
Consult IDE log for more details (Help | Show Log)
i use latest android studio and latest(1.6) gradle. whats the problem here? i use 32bit window 8
IMPORTANT: I done it on fresh android studio!! if you have plugins and such it may not work for you !
I found the solution that worked for me :
Everything should work like a charm :)
I'm on a Mac:
After updating to Version 0.2.0 I had the problem and here is what I did to fix it:
First I removed all old config/settings files:
And after this didn't help either I freshly downloaded AndroidStudio. And then it worked. So you might start with a fresh download before removing everything.
I made sure I had the latest version of Gradle, but that made no improvement. Then I ran Android Studio using an admin account, at which point all the errors disappeared. If you are able to, I suggest you do the same. This was on a Windows 7 box.
If you upgrade your Studio to 0.2 version, then to fix this, open the SDK manager, and make sure that the "Extras/Android Support Repository" (not just Android Support Library) is installed.
Source: http://tools.android.com/recent/androidstudio020released
Might be a proxy issue, can be solved by adding proxy address.
Studio-->Settings-->HTTP Proxy-->Use Proxy and add proxy details and verify with check connection.
Another solution is to install the SDK repository as mentioned in the install notes at the very bottom of the page. This happens after upgrading from android studio 0.1 to 0.2 when creating new projects or implementing existing ones.