从2.2.1升级到2.2.2版本后,Android Studio出现问题

时间:2016-10-21 08:42:22

标签: android android-studio gradle android-gradle

我正面临android studio的问题。我昨天已经将android studio更新为2.2.2。现在我无法创建新项目。当我创建一个时,我发现了这些错误。 虽然旧项目正在运作。

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 https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 1572864KB object heap

我正在使用“jdk1.8.0_101”。

我已经尝试了所有可能的堆栈溢出解决方案,但没有任何用处。

注意:请不要将其标记为重复的问题。我已经阅读了所有内容,并尝试了几乎所有给出的解决方案。

我试过的一些解决方案

  1. 从用户目录中删除.gradle文件。 (C:\ ...用户的gradle)。
  2. unistalled android studio ..再次重新安装。
  3. 为gradle添加了最大尺寸....
  4. 添加在settings \ compiler \ vm选项中。
  5. 缓存重启。

2 个答案:

答案 0 :(得分:1)

最新版本的Android Studio存在一些问题。请删除现有的android-studio,并从tools.android.com下载以前的2.2.1版本

答案 1 :(得分:0)

我改变了gradle.properties

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx512m

并且有效。

相关问题