本文介绍了Android Studio项目已注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Android Studio中遇到了一个大问题.我有一个依赖于其他两个项目(如libs)的项目.我按照指南将项目导入Android Studio的问题有关用于导入外部模块的ActionBarSherlock 的信息.我打开了项目结构",导入了模块,但是此后在模块"区域中看不到它.模块"区域仅包含根模块,似乎未刷新(这很奇怪).因此,如果我尝试将模块添加为依赖项,则Android Studio找不到任何模块!

I've a big problem with Android Studio.I have a project that depends on two other projects (as libs).I followed the guide Problems importing project into Android Studio regarding ActionBarSherlock for import external modules.I opened "Project Structure", imported the module, but after that I can't see it in the Modules area.The Modules area contains only the root module, seems it is not refreshed (this is strange). So if I try to add the module as a Dependency, Android Studio doesn't find any module!

然后,如果我尝试重新导入该模块,则表明该模块/项目已被注册!!也许我缺少了一些东西,但是我不知道....!在Windows和MacOSX上都存在此问题.

Then, if I try to re-import the module, it says that the module/project is already registered!!Maybe I'm missing something, but I don't know what....! I have this problem both on Windows and MacOSX.

预先感谢,费德里科

推荐答案

在您的.idea目录中四处查找有关有问题的项目的说明.我遇到了同样的问题,并通过从.idea/sbt.xml删除条目来解决了该问题.

Look around in your .idea directory for mentions of the problematic project. I had the same problem and resolved it by deleting the entry from .idea/sbt.xml.

这篇关于Android Studio项目已注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 07:40