After starting eclipse today, the gradle project running normally yesterday reported an error and could not be compiled. The error information is as follows:
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. Could not fetch model of type 'EclipseProject' using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.2.1-bin.zip'.
According to the literal meaning, it seems that there is not enough memory. All gradle memory needs to be configured. The steps are as follows
1. Navigate to the directory C: \ users \ & lt; username>\. gradle
2. Create the file gradle. Properties; Content: org. Gradle. Jvmargs = – xmx512m
3. After saving, restart eclipse to compile normally
Similar Posts:
- Android studio import project, error e rror:Unsupported method : BaseConfig.getApplicationIdSuffix().
- Error:Failed to open zip file. Gradle‘s dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
- Plugin is too old, please update to a more recent
- java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Ja [How to Solve]
- Gradle‘s dependency cache may be corrupt [How to Solve]
- Common error reports and handling methods of Android studio
- Unrecognized option of Weblogic startup error: – JRockit
- The solution of Jenkins’ error ‘gradle build daemon appeared unexpectedly’
- Could not find com.android.tools.build:gradle:3.3.0.