Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio The project is already registered

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!

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.

Thanks in advance, Federico

like image 686
Coding4Lif3 Avatar asked Jul 01 '13 13:07

Coding4Lif3


People also ask

How do you reimport a project?

You can re-import your project by going to Assets > Reimport all. When Unity is updated, it might need to re-import to make sure the project works in the new version. For example, some old scripts might be automatically corrected to work in the newest version. If your project is large, reimporting can take a while.

How to reimport project Android Studio?

Launch Android Studio, and click File > New > Import Project. Locate your project directory, click the build. gradle file you created above to select it, and then click OK to import your project.

How do I reimport the project in IntelliJ?

Launch IntelliJ IDEA. If the Welcome screen opens, press Ctrl+Shift+A , type project from existing sources , and click the Import project from existing sources action in the popup. Otherwise, from the main menu, select File | New | Project from Existing Sources.

How to import zip file to Android Studio?

Importing into Android Studio Open Android Studio and select Open an Existing Android Studio Project or File, Open. Locate the folder you downloaded from Dropsource and unzipped, choosing the “build. gradle” file in the root directory. Android Studio will import the project.


2 Answers

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.

like image 95
Michael Iles Avatar answered Nov 15 '22 09:11

Michael Iles


In ij go to menu: View -> Tool Windows-> Gradle Right click on the problematic module and click Refresh External Project, You should see the module in project explorer.

like image 30
SandeepGodara Avatar answered Nov 15 '22 09:11

SandeepGodara



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!