AndroidStudio usage exceptions
Exception information:
Gradle sync failed: 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 https://docs.gradle.org/2.10/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. Consult IDE log for more details (Help | Show Log)
Android Studio
I always thought it was my gradle. properties file.
Org. gradle. jvmargs =-Xmx1024m-XX: MaxPermSize = 512 m-XX: + HeapDumpOnOutOfMemoryError-Dfile. encoding = UTF-8
-The value of Xmx1024m is too small. It turns out that my computer's memory is too small and only 2 GB, while windows accounts for about 1 GB.
-Change the value of Xmx1024m to-Xmx512m.