Java Gradle项目同步失败-Android Studio 0.8.14

Java Gradle项目同步失败-Android Studio 0.8.14,java,android,gradle,android-studio,Java,Android,Gradle,Android Studio,所以我正在尝试Android Studio(Android编程新手,但不是一般编程),我有点挣扎。创建新项目后,我立即收到错误消息“Gradle项目同步失败。基本功能(如编辑、调试)将无法正常工作。” 此消息还包括此梯度同步消息: Error:Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrec

所以我正在尝试Android Studio(Android编程新手,但不是一般编程),我有点挣扎。创建新项目后,我立即收到错误消息“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/2.1/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.
我已经阅读了一篇又一篇关于这个问题的文章(大多数都是这样,谷歌代码等等),但是到目前为止似乎没有任何效果(我猜是因为几乎每一篇文章都引用了不同的Android Studio版本)

是否有人在使用我的版本(或接近我的版本)时遇到此问题

我正在运行64位Windows7,并且已经安装了最新的64位JDK版本(截至本文发布之日)。请让我知道,如果你需要任何关于我的新项目或设置的其他信息


谢谢大家。

我删除了位于
C:\Users\\gradle\wrapper\dists的整个文件夹,当我重新启动Android Studio时,它再次下载了整个文件夹,并且工作正常

我在这里尝试了另一个对我不起作用的建议,但也尝试了一下:


我也遇到了同样的问题,在谷歌搜索时发现了这个问题。但Saurabh的回答对我不起作用。我在网上找到了另一个答案,它很有效

如何修复此错误:必须将其创建为环境变量:变量:
\u JAVA\u选项
值:-Xmx512M

在windows命令下

setx _JAVA_OPTIONS -Xmx512M
linux终端下

export _JAVA_OPTIONS=-Xmx512M
参考链接:


希望它能帮助其他遇到同样问题的人。

您有多少可用内存?尝试关闭所有其他应用程序并再次同步。尝试使用java 7 jdk而不是java 8设置项目。