关于Android Studio报错:Unable to start the daemon process.

豬豬鳥 2019-04-06 09:06:57
新建工程后会出现以下错误


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/4.4/userguide/gradle_daemon.html

Please read the following process output to find out more:
-----------------------

在网上找了很多解决方法,其中最多的一类说是更改 gradle.properties 代码为
org.gradle.jvmargs=-Xmx512m

尝试这种方法未果后,找到了这种解决办法

如图所示 新建环境变量:JAVA_TOOL_OPTIONS 变量值:-Djava.net.preferIPv4Stack=true
...全文
398 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

50,531

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧