什么是IntelliJ IDEA中我的项目的文件夹层次结构的问题? [英] Whats the matter of the folder hierarchy my project in IntelliJ IDEA?

查看:726
本文介绍了什么是IntelliJ IDEA中我的项目的文件夹层次结构的问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天当我打开我的项目时,我的文件夹层次结构存在一些问题,你可以看到下面的内容,这里没有包:

Today when I open my project, there is some problem in my folder hierarchy, you can see the below, there is no packages here:

< a href =https://i.stack.imgur.com/RBiTH.jpg =nofollow noreferrer>

通常,公共文件夹层次结构应如下所示:

In general, the common folder hierarchy should like this:

编辑

我尝试重新打开项目并重新打开IntelliJ IDEA。
两者都不起作用。

I have tried reopen the project and reopen my IntelliJ IDEA. Both do not work.

推荐答案

删除 .idea 目录和 * .iml 文件,然后从欢迎屏幕打开 pom.xml

Delete .idea directory and *.iml files, then Open pom.xml from the Welcome screen.

如果 .idea / modules.xml 已损坏或任何<$ c $,则会发生此问题c> *。iml 找不到文件/无效。

This issue can happen if .idea/modules.xml is corrupted or if any of the *.iml files are not found/invalid.

从Maven重新导入项目应该会有所帮助。如果它不起作用,请参考此答案进行诊断。

Reimporting the project from Maven should help. In case it doesn't work, refer to this answer for diagnostics.

这篇关于什么是IntelliJ IDEA中我的项目的文件夹层次结构的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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