Android Studio未在项目结构中显示模块 [英] Android Studio not showing modules in project structure

查看:88
本文介绍了Android Studio未在项目结构中显示模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Android Studio,并且想向我的项目中添加模块,例如 动作栏Sherlock"或jar文件, 但是当我打开项目结构时,菜单中没有模块或库:\

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 :\

在intelij中出现:

In intelij it's appearing:

那是什么问题?如何在Android Studio中添加这些模块?

So what's the problem? How can I add these modules in Android studio?

推荐答案

2019年3月19日更新

某人最近遇到的一种新体验,即使他/她确实在 app 模块中添加了一个 library 模块,并包括在设置gradle"中,如下所述.值得一试的另一件事是,确保您的 app 模块和您的 library 模块具有相同的compileSdkVersion(在它们的各个部分中都有)!

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.

参考: 原始答案

有时您使用导入模块功能,那么该模块确实会以项目模式显示,但不会以Android模式显示

Sometimes you use import module function, then the module does appear in Project mode but not in Android mode

因此,对我来说有效的方法是转到设置gradle,手动添加模块,然后再次同步gradle:

So the thing works for me is to go to Setting gradle, add my module manually, and sync a gradle again:

这篇关于Android Studio未在项目结构中显示模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆