Android Studio 未在项目结构中显示模块 [英] Android Studio not showing modules in project structure
问题描述
我正在使用 Android Studio,我想将模块添加到我的项目中,例如动作栏夏洛克"或 jar 文件,但是当我打开项目结构时,菜单中没有模块或库:\
在 intelij 中它出现了:
有什么问题吗?如何在 Android Studio 中添加这些模块?
2019 年 3 月 19 日更新
某人最近刚刚面临的新体验,即使他/她确实在 app 模块中添加了一个 library 模块,并包括在如下所述的设置 gradle 中.值得一试的另一件事是确保您的 app 模块和您的 library 模块具有相同的 compileSdkVersion(在每个 gradle 中)!
请点击此链接了解更多详情.
参考:
所以对我有用的是去设置gradle,手动添加我的模块,然后再次同步gradle:
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 library in the menu :\
In intelij it's appearing:
So what's the problem? How can I add these modules in Android studio?
Update 19 March 2019
A new experience someone has just faced recently even though he/she did add a library module in app module, and include in Setting gradle as described below. One more thing worth trying is to make sure your app module and your library module have the same compileSdkVersion (which is in each its gradle)!
Please follow this link for more details.
Ref: Imported module in Android Studio can't find imported class
Original answer
Sometimes you use import module function, then the module does appear in Project mode but not in Android mode
So the thing works for me is to go to Setting gradle, add my module manually, and sync a gradle again:
这篇关于Android Studio 未在项目结构中显示模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!