0
votes

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:


3

3 Answers

1
votes

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

0
votes

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.

0
votes

Open gradle.properties after scrolling down. Copy the following text and try building the program.

org.gradle.jvmargs=-Xmx1024m -XX\:MaxPermSize\=512m