【发布时间】:2014-07-03 00:27:13
【问题描述】:
我收到错误: “Gradle 项目同步失败。基本功能(例如编辑)将无法正常工作。”
和错误日志:
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.10/userguide/gradle_daemon.html
Please read below process output to find out more:
-----------------------
Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
我在此处阅读时试图删除 .gradle 文件夹。这昨天有效,但今天当我启动 Android Studio 时,错误再次显示,删除 .gradle 文件夹无济于事。
我真的不知道该怎么办。
有人有什么建议吗?
【问题讨论】:
-
安装 Jdk 1.8 并将项目 jdk 更改为 1.8,方法是转到文件 >> 项目结构 >> sdk 位置 >> android studio 中的 Jdk 位置
标签: java android gradle android-studio android-gradle-plugin