简体   繁体   English

Android studio 无法识别新模块

[英]Android studio not recognizing new module

I'm working on a project in android studio and we need to add a new module so my teammate added the module on a new a branch with some files in it and then I pulled the branch and now the new module is appearing in the file system and it's added to the settings.gradle but it's not recognized as a module in android studio, so how to make android studio recognize it as a module我正在 android 工作室从事一个项目,我们需要添加一个新模块,所以我的队友将模块添加到一个新的分支上,其中包含一些文件,然后我拉出分支,现在新模块出现在文件中系统并添加到设置中

在此处输入图像描述

The settings.gradle in this case should have a single include array formatted as (you might have had merge conflicts incorrectly handled to end up with double "include"):在这种情况下, settings.gradle应该有一个格式化为的include数组(您可能错误地处理了合并冲突以结束双“包含”):

include ':app', ':mobile'

I solved the problem by creating a new module in android studio with the same name, and it automatically had the files that was in the original module我通过在 android 工作室中创建一个具有相同名称的新模块解决了这个问题,它自动拥有原始模块中的文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM