gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 06:13:39 26 4
gpt4 key购买 nike

当我尝试将其他项目作为模块导入同一个 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\.gradle

org.gradle.jvmargs=-Xms128m -Xmx256m

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

关于java - 如何将多个 Gradle 项目添加到同一个 IntelliJ 实例中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32622676/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com