user2182912
user2182912

Reputation: 113

Android - There is no android project named

Dang. I'm sorry for asking so many different questions here. So, I have an android project that I imported into my workspace. Then, after fixing any build path errors and stuff, I went to export it. When I first imported it, it was automatically name "MainActivity". So, I tried to export it but I get the error "There is no android project named MainActivity. I checked and the folder is in my workspace. I searched but couldn't find a working answer. I guess eclipse sees this code as something else. I'm almost positive when I imported it I selected to import exisiting android application project...

Upvotes: 2

Views: 6270

Answers (3)

user3675856
user3675856

Reputation: 1

It is probably you had set your project as library. Try to change the setting at Project > Properties > Android > Library and UNCHECK Is Library

Upvotes: 0

Szymon Przedwojski
Szymon Przedwojski

Reputation: 181

Eclipse probably sees your project as a library instead of an Android project. Check your project.properties file (you'll find it as the very last file in your project in Package Explorer on the left). If at the bottom you see the line:

android.library=true

Just get rid of it, or try setting it to false. It should normally solve the problem.

Upvotes: 1

VenomVendor
VenomVendor

Reputation: 15392

You are trying to run your Library Project, if the project is not library
Right Click on the Project >> Properties >> Android >> In the right Panel Scroll down >> Uncheck isLibrary

Upvotes: 12

Related Questions