'ERROR: Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon
I tried almost all tricks but cannot fix this problem please anyone help
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 Manual chapter on the daemon at https://docs.gradle.org/5.4.1/userguide/gradle_daemon.html Process command line: C:\Program Files\Android\Android Studio\jre\bin\java.exe -Xmx1024m -Dfile.encoding=windows-1252 -Duser.country=US -Duser.language=en -Duser.variant -cp C:\Users\dell.gradle\wrapper\dists\gradle-5.4.1-all\3221gyojl5jsh0helicew7rwx\gradle-5.4.1\lib\gradle-launcher-5.4.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 5.4.1 Please read the following process output to find out more:
Solution 1:[1]
Try this solution
Open gradle.properties and add this line
org.gradle.jvmargs=-Xmx1024m -XX\:MaxPermSize\=512m
If this didn't solve your problem just go under C:\Users\<username> and delete .gradle directory then try building again.
Solution 2:[2]
I changed gradle.properties and it helped to solve same error, but after reload I am back to square ONE.
Unsupported Modules Detected: Compilation is not supported for following modules: capacitor-cordova-android-plugins. Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.
thank you
Solution 3:[3]
Open gradle.properties after scrolling down.
Copy the following text and try building the program.
org.gradle.jvmargs=-Xmx1024m -XX\:MaxPermSize\=512m
Solution 4:[4]
in my case I had to remove the value "-XX:MaxPermSize=2048m" in:
org.gradle.jvmargs=-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError
In the file gradle.properties.
I run Intellij with openjdk-17.0.2
After that, It works Ok,
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Amine |
| Solution 2 | Laura Peppiatt |
| Solution 3 | David Buck |
| Solution 4 | Pablo Ezequiel Inchausti |
