Exceptions that occur during Androidstudio use
Exception information:
Gradle sync failed:unable to start the daemon process.
This problem might is caused by incorrect configuration of the daemon.
For example, a unrecognized JVM option is used.
Please refer to the "User Guide chapter on" Daemon at https://docs.gradle.org/2.10/userguide/gradle_daemon.html
Ple ASE read the following process output to find more:
-----------------------
Error occurred during Initializati On of VMs
could not reserve enough spaces for object heap
error:could not create the Java Virtual Machine.
ERROR:A Fatal exception has occurred. Program would exit.
Consult IDE Log for further details (Help | Show Log)
Just started using Androidstudio
When I look at the Internet, I always think of myself as a gradle.properties file.
Org.gradle.jvmargs=-xmx1024m-xx:maxpermsize=512m-xx:+heapdumponoutofmemoryerror-dfile.encoding=utf-8
-xmx1024m value is too small, and finally found that it is because my own computer memory is too small, only 2 G, and the Windows system about 1G, so have to
Change the value of-xmx1024m to-xmx512m.
The above is the Androidstudio error information collation, follow-up continue to supplement the relevant information, thank you for your support of this site!