开创了机器人工作室新项目时出错 [英] An error when creating new project in android studio

查看:113
本文介绍了开创了机器人工作室新项目时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我每次创建新的项目,我得到这个错误:

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)

任何想法?

推荐答案

开始Android的工作室,关闭所有打开的项目。

Start Android Studio, close any open project.

在右侧,点击配置 - >设置

On the right side, click on Configure -> Settings.

在左侧,在反编译>摇篮设置VM选项-Xmx512m(不带引号)

On the left side, in Compiler->Gradle set VM Options to "-Xmx512m" (without quotes)

preSS确定,然后创建一个项目。为我工作。

Press OK, then create a project. Worked for me.

这篇关于开创了机器人工作室新项目时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆