After converting a perfectly working application to a library (including its Activity class!), I am trying to create an application that uses that entire library by simply s
For anyone who updated to ADT 22, make sure that you have checked Android Private Libraries in the Java Build Path > Order and Export tab. For further information, read this. This works for me. Maybe little force to move users to Android Studio instead of Eclipse:))
This can happen if you list the activities in the library manifest instead of in the application manifest. There's no need to have <activity> tags in a library manifest. (See, for instance, this thread.)
I had the same error in one of my projects and thought that I can share how I fixed mine.
At some point of my project I had to change one of the package names I am using where all my Activity classes are situated. When I did, I forgot to update the AndroidManifest which caused me the same error. Updating this fixed it.
I finally solved the problem. It turns out that I had 2 critical settings in the Properties of both projects not set correctly:
Add...
button. (how dumb could I be?)I hope that other newbies like me will find this information helpful. Sometimes, an extremely difficult problem to debug, hides a configuration error when the innocent unsuspecting stressed programmer assumes that this is already has been taken care of...