gpt4 book ai didi

android - 卡在启动 gradle 守护进程

转载 作者:行者123 更新时间:2023-12-03 04:20:09 31 4
gpt4 key购买 nike

我是一名安卓开发者。
昨天我在 Android Studio 打开了我当前的项目
并且项目无法启动。

显示错误:

Gradle sync failed: 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:
-----------------------
Consult IDE log for more details (Help | Show Log) (4s 245ms)
  • 我已经编辑了graddle.propertiesorg.gradle.jvmargs=-Xmx1024m但它仍然不起作用
  • 我已经用它的 gradle 重新安装了我的 android studio,但是这个 bug 仍然存在
  • 我已经删除了.gradle我电脑上的文件夹,但它仍然卡住
  • 我已经在 Android Studio 中设置了构建进程堆大小,但它仍然无法工作
  • 我已经检查了我的防病毒软件和防火墙(甚至将其关闭)但没有任何 react

  • 我在这里需要帮助,因为我根本无法运行我的项目。

    这是gradle日志:
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

    Caused by: org.gradle.api.GradleException: 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:

    这是来自守护进程日志的日志
    20:37:16.805 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Adding loopback multicast interface Microsoft Wi-Fi Direct Virtual Adapter-QoS Packet Scheduler-0000
    20:37:16.805 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Adding IP addresses for network interface Microsoft Wi-Fi Direct Virtual Adapter-WFP 802.3 MAC Layer LightWeight Filter-0000
    20:37:16.806 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Is this a loopback interface? false
    20:37:16.808 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Is this a multicast interface? true
    20:37:16.808 [DEBUG] [org.gradle.internal.remote.internal.inet.InetAddresses] Adding loopback multicast interface Microsoft Wi-Fi Direct Virtual Adapter-WFP 802.3 MAC Layer LightWeight Filter-0000
    20:37:16.814 [ERROR] [system.err]
    20:37:16.814 [ERROR] [system.err] FAILURE: Build failed with an exception.
    20:37:16.815 [ERROR] [system.err]
    20:37:16.815 [ERROR] [system.err] * What went wrong:
    20:37:16.815 [ERROR] [system.err] java.net.BindException: Address already in use: bind
    20:37:16.815 [ERROR] [system.err]
    20:37:16.815 [ERROR] [system.err] * Try:
    20:37:16.815 [ERROR] [system.err] Run with --stacktrace option to get the
    stack trace. Run with --info or --debug option to get more log output. Run
    with --scan to get full insights.
    20:37:16.816 [ERROR] [system.err]
    20:37:16.816 [ERROR] [system.err] * Get more help at https://help.gradle.org
    Daemon vm is shutting down... The daemon has exited normally or was
    terminated in response to a user interrupt.

    最佳答案

    我通过关闭电脑上的热点解决了这个问题。找到解决方案here

    关于android - 卡在启动 gradle 守护进程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51327366/

    31 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com