?錯(cuò)誤信息如下:
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/6.5/userguide/gradle_daemon.html
Process command line: D:\Java\jdk-1.8\bin\java.exe -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country=CN -Duser.language=zh -Duser.variant -cp C:\Users\DELL\.gradle\wrapper\dists\gradle-6.5-bin\6nifqtx7604sqp1q6g8wikw7p\gradle-6.5\lib\gradle-launcher-6.5.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 6.5
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap
-----------------------
Check the JVM arguments defined for the gradle process in:
?- gradle.properties in project root directory
?解決方案如下:
1、修改項(xiàng)目中g(shù)radle.properties文件,只要添加以下一行代碼:
org.gradle.jvmargs=-Xmx512m
2、重啟Android Studio或者點(diǎn)Try again
具體操作如下:
1.打開(kāi)該項(xiàng)目找到gradle.properties文件,將
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8用#鍵注釋掉,改成以下代碼:
org.gradle.jvmargs=-Xmx512m
?2.點(diǎn)擊Try again或者重啟Android studio就OK啦~文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-624605.html
文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-624605.html
到了這里,關(guān)于Unable to start the daemon process.解決方案的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!