gpt4 book ai didi

Android studio Gradle同步和构建错误

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:36:58 28 4
gpt4 key购买 nike

我是 android studio 和 gradle 的新手,我得到了 AS 0.5。我下载了0.8.1更新包,通过删除安装的文件,将更新文件复制到program files文件夹中进行更新。它运行正常,但是当我尝试同步 gradle 时,出现此错误。这真的很令人沮丧,因为我的互联网连接速度非常慢,我曾尝试删除 .gradle 文件并再次尝试,但没有成功。任何帮助将不胜感激。由于 r23 错误,我的 ADT 目前一团糟。我以为 AS 会提供一条出路,现在我又被困住了。

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 http://gradle.org/docs/1.12/userguide/gradle_daemon.html

Please read below process output to find out more:

18:44:13.593 [main] DEBUG o.g.l.daemon.bootstrap.DaemonMain - Assuming the daemon was started with following jvm opts: [-XX:MaxPermSize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Xmx1024m, -Dfile.encoding=windows-1252]

FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type DaemonContext using DaemonServices.createDaemonContext().

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

最佳答案

以管理员身份运行 Android Studio。它为我解决了这个问题。

关于Android studio Gradle同步和构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24537972/

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