I've been working on a project for a few weeks in Android Studio. All of a sudden when I opened it today, the project structure is all messed up.
Usually, it looks something like this: A standard Project Structure.
However, upon opening, My Project Structure looks like this: My Project Structure.
Any help on reformatting my project structure would be great. I really can't navigate it and find my Layout XML's etc..
答案 0 :(得分:2)
Nothing is messed up. You are just in a different view i.e. project view
.
What you want to see is Android View
.
Change the view to "Android View" by clicking on the dropdown at the top of the box.
答案 1 :(得分:2)
You have selected "Project" rather than "Android"
Just select "Android" above the application name, and you are good to go.
答案 2 :(得分:0)
我也遇到了这个问题,但是在将Android Studio从2.1版本升级到3.2之后。
我必须手动将gradle.buld(模块:app)文件更新为当前的“ buildToolsVersion”(升级后不需要)。
在我使用的同时,我也将“ compileSdkVersion”和“ targetSdkVersion”更新为最新版本。
然后我继续导入项目,并被提示升级Gradle,然后更正皮棉抱怨的问题。
如果有人对这些详细信息感兴趣,请询问,我会发帖。