Android Studio not showing modules in project structure

后端 未结 16 958
醉酒成梦
醉酒成梦 2020-12-29 17:58

I am using Android studio and I want to add module to my project like \"action bar Sherlock\" or jar files, but when I opened the project structure there is no module or lib

相关标签:
16条回答
  • 2020-12-29 18:45

    You need to add a gradle.settings file to your root project structure, after that when you "Open Module settings" you will the menu aligned to your gradle.settings. When importing a project to Android Studio, it doesn't create this file for you. Sometimes it's usually better to start a clean project and move your code there, it's usually easier to achieve.

    0 讨论(0)
  • 2020-12-29 18:45

    Had similar issue when running version control on a project in Android Studio (0.4.2). When pulling it down to a new location and importing the modules, only the "Android SDK" were showing in the Project Structure.

    I removed the .idea/ folder from the version control, by adding it to .gitignore file, and did a fresh pull and imported the modules. Now all the settings appeared correctly in the Project Settings and Platform Settings for the Project Structure.

    0 讨论(0)
  • 2020-12-29 18:47

    Check settings.gradle. You'll find this : include ':app'

    Just add your own module name and it should look like this :

    include ':app', ':yourModuleName'
    

    Sync.

    That's it.

    0 讨论(0)
  • 2020-12-29 18:48

    Make sure the directory name is lower case.

    0 讨论(0)
提交回复
热议问题