Android Studio not showing modules in project structure

后端 未结 16 1156
醉酒成梦
醉酒成梦 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:37

    Open settings.gradle and add the module as below,

    include ':app',':bottomnav'
    

    here i have added my newly imported module ':bottomnav' separated with a comma. then Sync your project. your module will be visible to dependency. Android Studio only displays those module, which are defined in the settings.gradle file of your application. after defining the module in settings.gradle, you will be able to add the module as dependency of your application.

提交回复
热议问题