Android的工作室摇篮工程同步失败摇篮、工作室、工程、Android

2023-09-05 07:51:56 作者:起雾森林

我收到错误: 摇篮工程同步失败。基本功能(如eiditing)将无法正常工作。

I'm getting error: "Gradle project sync failed. Basic functionality (e.g. eiditing) will not work properly."

和错误日志:

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文件夹没有帮助。

I was trying to delete .gradle folder as I read here. This worked yesterday but today when I started Android Studio the error showed again and deleting .gradle folder doesn't help.

我真的不知道该怎么办。

I realy don't know what to do.

有没有人有什么建议?

Does anyone have any suggestions?

推荐答案

只是一个盲目的猜测:尝试这样的事情添加到您的 gradle.properties 在项目文件:

Just a blind guess: try to add something like this to your gradle.properties file in the project:

org.gradle.jvmargs=-Xmx512m -XX:MaxPermSize=512m