Java 无法使用 IntelliJ IDEA 打开项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19108397/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 14:10:01  来源:igfitidea点击:

Can not open project with IntelliJ IDEA

javaintellij-idea

提问by Sajjad Rostami

I have a project that was already working with IntelliJ IDEA but now,when I want to open it with IntelliJ IDEA, I am facing this error message:"Contains no IntelliJ IDE project".

我有一个已经在使用 IntelliJ IDEA 的项目,但是现在,当我想使用 IntelliJ IDEA 打开它时,我面临以下错误消息:“不包含 IntelliJ IDE 项目”。

回答by Ernestas Kardzys

Try importing project by selecting File -> Import Project... (as for IntelliJ IDEA 12.1.4).

尝试通过选择 File -> Import Project... 来导入项目(对于 IntelliJ IDEA 12.1.4)。

Does it help?

它有帮助吗?

回答by Vipin ChandraMohan

I faced the same issue. Deleting .projectfile in from the home directory and reopening solvedthe problem.

我遇到了同样的问题。从主目录中删除.project文件并重新打开解决了问题。

回答by JPilson

I was facing this recently and by Jetbeans adding " -Dide.mac.file.chooser.native=false " to vmoptions would solve the problem.

我最近遇到了这个问题,通过 Jetbeans 添加“-Dide.mac.file.chooser.native=false”到 vmoptions 可以解决这个问题。

But in my case, it did not work, I noticed the error log and it was not able to open due to no permission to read a file under.IDEA folder inside my project so went to system preferences and gave WebStrom permission to files and it started working.

但是在我的情况下,它不起作用,我注意到错误日志并且由于没有权限读取我的项目中的.IDEA文件夹下的文件而无法打开所以转到系统首选项并授予WebStrom文件权限,它开始工作。

https://youtrack.jetbrains.com/issue/JBR-1721?_ga=2.190528747.1517998312.1582653181-1398648508.1578306760

https://youtrack.jetbrains.com/issue/JBR-1721?_ga=2.190528747.1517998312.1582653181-1398648508.1578306760