Android Studio仅在Project中显示Gradle文件,而在"Project"中则显示Android.侧面菜单,其他所有文件夹均不显示 [英] Android Studio only shows Gradle files in Project and Android in the "Project" side menu, all other folders have nothing to show
问题描述
我想知道如何使我的项目文件出现在如图(这里是我提到的Android文件夹,实际上也包含内容).
I want to know how to make my project files appear in the "Project" side menu pictured here (Here is the Android folder which I mentioned also actually had content).
我可以在文件浏览器中找到文件.我会注意到,我所做的全部工作就是创建这个项目(和其他几个项目来看看它是否设置不正确),因此我没有对Android Studio或代码中的代码进行任何更改.项目.
I can find the files in the file explorer. I'll note that all that I've done is create this project (and a couple others to see if it just didn't set-up right), so I haven't made any changes in Android Studio or the code in the project.
我可以点击顶行来访问文件,但这需要时间和因为这是我的第一个android项目,所以我找不到合适的方法-因此,必须使所有文件可见.
I can reach the files clicking the top row, but this takes time and since this is one of my first android projects I can't find my way around that well - So having all files visible is pretty much a must.
如何使用Android Studio的所有教程和解释已经有可见的文件了.我想要一些帮助,所以我实际上可以开始编码了:)谢谢
All of the tutorials and explanations of how to use Android Studio already have the files visible there. I would like some help so I can actually start coding :) Thanks
推荐答案
通常,文件消失的原因是您在导入项目时遇到了gradle同步问题,或者您的settings.gradle有问题.告诉AS为项目加载哪个模块.(通常只需在新项目上 include':app'
).
Usually, the reason why files disappears is either you had a gradle sync problem when importing the project OR there is a problem with your settings.gradle who's in charge to tell AS which module to load for the project. (usually simply include ':app'
on new projects).
尝试文件/使用Gradle文件同步项目
您也可以尝试简单地关闭项目并重新打开它(文件/关闭项目)如果这样做不起作用,则应尝试发布您的 app/build.gradle
文件以进一步提供帮助.
You can also try to simply Close the project and reopening it (File / Close Project)
If this does not work, you should try and post your app/build.gradle
file to help further.
这篇关于Android Studio仅在Project中显示Gradle文件,而在"Project"中则显示Android.侧面菜单,其他所有文件夹均不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!