Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gradle project sync failed. basic functionality(e.g editing, debugging) will not work properly in android studio 1.0.1

I have started using Android Studio 1.0.1 and there is nothing I can do as I have this error and even the XML can't be rendered.

Error: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/2.2.1/userguide/gradle_daemon.html

Please read the following 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.

Somebody else facing the same problem?

like image 607
gautam joshi Avatar asked Dec 30 '14 11:12

gautam joshi


People also ask

Why is Gradle project sync not working in Android Studio 3?

Android Studio 3 Error: Gradle project sync failed. Basic functionality (e.g. editing, debugging) will not work properly There may be many reasons for this error message, but in my case it was because my “Gradle Version” in the Project Structure was set to 2.2.1.

Why does my Gradle project fail to run?

Bad internet connection: Since Gradle downloads all the missing versions which are required to run your project, it might fail if you don’t have a valid internet connection. Issues in Gradle compiler: There might be cases where your Gradle compiler is not working properly.

Why is my Gradle not syncing after using proxyserver?

Usage of such ProxyServers can affect the Gradle sync. Hence it is better to disable the proxy server while syncing the Gradle. You can also make sure whether you are using a ProxyServer in the following way.

What is Gradle in Android Studio?

Gradle is used in Android Studio to develop the .APK files which are non-other than the Apps on our mobile phones. The Gradle combines all the Java and XML files into dex files and with the help of its tools produces an APK file.


1 Answers

I got the same issue. The fix in my case was to refer to a correct version of JDK. My Android Studio is 64-bit (on Windows you can see it in task manager as studio64.exe) while it was referring to 32-bit JDK. To check it go to File > Other Settings > Default Project Structure > JDK location and check the path. Under windows, if it shows 32-bit location C:\Program Files (x86)\Java\jdk1.7.0_25 instead of 64-bit path C:\Program Files\Java\jdk1.7.0_XX then change it to the correct one. If you don't have a 64-bit JDK then download and install it.

like image 78
frangulyan Avatar answered Oct 23 '22 12:10

frangulyan