Can't Start Gradle Daemon? "Unable to start the daemon process /initialization of VM"
Android Studio users running version 0.8.4 may encounter this perplexing error when working with Gradle projects. The issue stems from an incorrect configuration of the daemon, which could be due to an unrecognized JVM option.
The specific error message:
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/1.12/userguide/gradle_daemon.html ----------------------- Error occurred during initialization of VM Could not reserve enough space for 1048576KB object heap Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
解决方法:
By adding the org.gradle.jvmargs=-Xmx1024m parameter, we are specifying the maximum heap size for the Gradle daemon, resolving the "Could not reserve enough space for 1048576KB object heap" error.
The above is the detailed content of Why Can't I Start the Gradle Daemon? 'Unable to start the daemon process / initialization of VM'. For more information, please follow other related articles on the PHP Chinese website!