Android Studio中的Gradle项目刷新失败

时间:2014-09-19 09:32:30

标签: android android-studio android-gradle

当我尝试清理/运行项目时,它显示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.12/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.

1 个答案:

答案 0 :(得分:-1)

尝试执行以下操作:

在“文件”中选择invalidate caches选项,然后退出android studio

删除主目录中的.gradle文件夹,然后重新启动android studio

然后重建项目。