Android studio Gradle 同步和构建错误

2024-05-24

我是 android studio 和 gradle 的新手,我得到了 AS 0.5。我下载了0.8.1更新包并通过删除已安装的文件并将更新文件复制到program files文件夹进行更新。它运行正确,但当我尝试同步 gradle 时,出现此错误。这真的很令人沮丧,因为我的互联网连接速度非常慢,我尝试删除 .gradle 文件并再次尝试,但没有成功。任何帮助将不胜感激。由于 r23 bug,我的 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。它为我解决了问题。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Android studio Gradle 同步和构建错误 的相关文章

随机推荐