微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Android studio Gradle同步和构建错误

我是android studio和gradle的新手,我得到了AS 0.5.我下载了0.8.1更新包,并通过删除已安装的文件并将更新文件复制到程序文件文件夹进行更新.它运行正常,但当我尝试同步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.它解决了我的问题.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐