Java 如何将多个Gradle项目添加到同一IntelliJ实例中

Java 如何将多个Gradle项目添加到同一IntelliJ实例中,java,intellij-idea,gradle,intellij-12,Java,Intellij Idea,Gradle,Intellij 12,当我尝试将其他项目作为模块导入同一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 confi

当我尝试将其他项目作为模块导入同一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参数,但不确定确切的位置。

我在
C:\Users\username\.gradle
中的
gradle.properties
文件下面添加了一行

org.gradle.jvmargs=-Xms128m -Xmx256m
上面没有给我的错误,并添加了像一个魅力的项目。但它仍然会删除现有项目并添加新项目。因此,每个实例仍然有一个项目:(