使用Android Studio的时候出现:
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 guide chapter on the daemon at https://docs.gradle.org/3.3/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
这个错误,从网上找到了2种方法,虽然未能解决我的问题,但是很多网友反馈方法是有用的,所以转载过来以供参考:
方法1.在项目的gradle.properties中添加:
org.gradle.jvmargs=-Xmx512m
字段,然后重新build项目;
方法2.删除C:\Users\Administrator下的.gradle文件夹。然后重新启动Android Studio,编辑器会重新创建.gradle目录。
以上两种方法对我的情况没有产生效果,我在重新安装Android Studio,差点重装系统后,跟一位有相同情况的老哥进行探讨后发现的,我电脑上的电脑管家程序在我不知情的情况下偷偷删除了一个文件
将此文件恢复后程序终于正常运行,另外一位老哥也是将360清理过的文件恢复后程序正常运行