Android Studio 项目已经注册 [英] Android Studio The project is already registered

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

问题描述

我在使用 Android Studio 时遇到了大问题.我有一个项目依赖于其他两个项目(作为库).我按照指南将项目导入Android Studio的问题关于 ActionBarSherlock 用于导入外部模块.我打开项目结构",导入模块,但之后在模块区域看不到它.Modules区只包含根模块,好像没有刷新(这很奇怪).因此,如果我尝试将模块添加为依赖项,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 项目已经注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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