Intellij IDEA Forge设置错误 [英] Intellij IDEA Forge setup error

查看:379
本文介绍了Intellij IDEA Forge设置错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想切换到IntelliJ for forge modding(minecraft)。当我在互联网上做他们要做的事情时,我得到了一个maven错误......

I wanted to switch to IntelliJ for forge modding (minecraft). When I do what they are saying to do on internet, I get a maven error...

            Unindexed remote maven repositories found. Disable...
            The following repositories used in your gradle projects were not indexed yet: 
            http://files.minecraftforge.net/maven
            If you want to use dependency completion for these repositories artifacts,
            Open Repositories List, select required repositories and press "Update" button

当我点击更新,它加载半秒,然后再次给出相同的错误...我在互联网上搜索,似乎没有人有我的问题...请帮助吗?

When I click update, it loads for half a second and then gives the same error again... I searched on internet and nobody seems to have my problem... help please ?

推荐答案

检查 idea.log 是否有错误。它可能会因OutOfMemory错误而失败,在这种情况下,您可以尝试增加堆大小Maven Importer (导入程序的VM选项)和 IDE堆大小

Check idea.log for errors. It may fail with OutOfMemory error in which case you can try increasing the heap size for Maven Importer (VM options for importer) and IDE heap size.

如果您在32位JVM上运行,请尝试不超过750-1024m -Xmx 值默认),否则可能会崩溃或无法启动

Try not to exceed 750-1024m for -Xmx value if you are running on a 32-bit JVM (default), otherwise it may crash or fail to start.

如果您需要使用更多堆,请切换到64 -bit Java 并在IntelliJ IDEA设置中为Maven(JDK for importer)指定相同的64位JVM。

If you need to use more heap, switch to 64-bit Java and specify the same 64-bit JVM for Maven (JDK for importer) in IntelliJ IDEA settings.

另一种可能的情况是IDE无法连接到Maven进程。在某些系统上,需要编辑 hosts 文件,以便 localhost 正确解析

Another possible case is if IDE cannot connect to the Maven process. On some systems it's needed to edit the hosts file so that localhost resolves correctly.

还有一个由Nvidia驱动程序引起的错误(java进程崩溃)。如果这适用于您的硬件,请确保您拥有最新的驱动程序。

There was also a bug caused by Nvidia driver (java process was crashing). Make sure you have the latest driver if this applies to your hardware.

如果上述所有操作无效,请分享您的 idea.log file。

If all the above doesn't help, share your idea.log file.

请注意,使用项目不需要索引存储库,但可能表明Maven因其中一个原因无法工作以上(或其他)。查看项目的依赖项是否已导入,以及是否可以在IDEA中构建导入的项目。

Note that indexing repositories is not required for working with a project, but it may indicate that Maven fails to work for one of the reasons above (or some other). See if the dependencies for the project were imported and if you can build the imported project in IDEA.

某些存储库根本无法编入索引,在这种情况下只需忽略错误。

Some repositories cannot be indexed at all, in this case just ignore the error.

这篇关于Intellij IDEA Forge设置错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆