繁体   English   中英

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

[英]How to Add Multiple Gradle Projects into same IntelliJ Instance

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

gradle.properties添加到位于C:\\Users\\username\\.gradlegradle.properties文件中

org.gradle.jvmargs=-Xms128m -Xmx256m

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM