0

当我尝试将其他项目作为模块导入同一个 IntelliJ 实例时,出现以下异常。我用IntelliJ IDEA 12.1.4

Could not fetch model of type 'BasicIdeaProject' using Gradle installation 'C:\Program Files\gradle-1.6'.
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
Could not create the Java virtual machine.


Consult IDE log for more details (Help | Reveal Log)

我觉得我需要在某处更改 JVM 参数,但不确定确切的位置。

4

1 回答 1

0

我将以下行添加到gradle.properties位于 C:\Users\username\.gradle

org.gradle.jvmargs=-Xms128m -Xmx256m

上面没有给我错误,而是像魅力一样添加了项目。但它仍然删除现有项目并添加新项目。所以每个实例仍然是一个项目。:(

于 2015-09-17T09:46:57.167 回答