小非凡 2018-01-15 12:54 采纳率: 100%
浏览 1794
已采纳

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:

附上gradle.properties:

Project-wide Gradle settings.

IDE (e.g. Android Studio) users:

Gradle settings configured through the IDE will override

any settings specified in this file.

For more details on how to configure your build environment visit

http://www.gradle.org/docs/current/userguide/build_environment.html

Specifies the JVM arguments used for the daemon process.

The setting is particularly useful for tweaking memory settings.

org.gradle.jvmargs=-Xmx1536m

When configured, Gradle will run in incubating parallel mode.

This option should only be used with decoupled projects. More details, visit

http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects

org.gradle.parallel=true

  • 写回答

5条回答 默认 最新

  • mianchui2288 2018-01-16 03:06
    关注

    1.改org.gradle.jvmargs=-Xmx512m;
    2.删除.gradle;
    3.降低jdk版本或者gradle版本;
    4.重装android studio;
    5.关了防火墙和卸载所有杀毒软件;
    然而上面的方法一点鸟用都没有,相信我。
    这个是因为防火墙拦截了,这种情况要关防火墙和卸载杀毒软件,但还是有可以会拦截,所以最好的方法是重装系统。(我自己折腾了两天,最后用了两个小时重装系统好了)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器