Ali*_*Ali 21 android gradle android-studio
每次我创建新项目时都会收到此错误:
Failed to import new Gradle project: Could not fetch model of type 'IdeaProject' using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'.
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.6/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.
Consult IDE log for more details (Help | Show Log)
任何的想法?
Sam*_*nda 74
启动Android Studio,关闭所有打开的项目.
在右侧,单击"配置" - >"设置".
在左侧,在Compiler-> Gradle中将VM Options设置为"-Xmx512m"(不带引号)
按确定,然后创建一个项目.为我工作.
Vic*_*rra 29
64位用户!
Gradel有机会看到32位JDK安装.所以我们需要改变它(为我工作).
开始 - >键入"环境" - >单击"编辑系统环境变量" - >将弹出一个对话框,单击标有"环境变量"的按钮 - >找到JAVA_HOME将其设置为"C:\ Program Files\Java\$ YOUR_JAVA_VER "其中$ YOUR_JAVA_VER = jdk1.7.0_21.
如果没有JAVA_HOME你可能需要创建它,当我读到安装Wiki时,我被告知我需要安装它.
| 归档时间: | 
 | 
| 查看次数: | 42248 次 | 
| 最近记录: |