开创了机器人工作室新项目时出错机器人、新项目、工作室、开创了

2023-09-04 09:24:51 作者:墨&璃殇〽

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

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.