简体   繁体   English

仍然无法启动守护进程

[英]still Unable to start the daemon process

I know this question has been asked before but i have tried: - deleting the gradle and restarting android after invalidating cache - also running android studio as an administrator. 我知道之前曾问过这个问题,但我已经尝试过:-删除gradle并在使缓存无效后重新启动android-还以管理员身份运行android studio。 - Replacing "org.gradle.jvmargs=-Xmx1536m" with "org.gradle.jvmargs=-Xmx1024m" but still getting the same error -将“ org.gradle.jvmargs = -Xmx1536m”替换为“ org.gradle.jvmargs = -Xmx1024m”,但仍收到相同的错误

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. 例如,使用了无法识别的jvm选项。 Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.4/userguide/gradle_daemon.html 请参阅守护程序上的用户指南一章, 网址https://docs.gradle.org/4.4/userguide/gradle_daemon.html

Please read the following process output to find out more: 请阅读以下过程输出以了解更多信息:

this problem started after I renamed my generated apk before deleting it. 在删除生成的APK重命名之前,此问题开始。 Any help will be deeply appreciated. 任何帮助将不胜感激。

I believe I may have had a similar issue, the issue I had was caused by me adjusting command line options in settings under Build, Execution, Deployment > Compiler and spelling something incorrectly. 我相信我可能遇到过类似的问题,这是由于我在Build, Execution, Deployment > Compiler下调整settings command line options并拼写错误而引起的。

One way to check if this is the case is to compile the project manually via the terminal. 检查是否存在这种情况的一种方法是通过终端手动编译项目。 This is done by typing gradlew clean and/or gradlew build into the terminal. 这可以通过在终端中输入gradlew clean和/或gradlew build来完成。

If it works, then that's your issue. 如果有效,那就是您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM