Search code examples
androidapkandroid-manifestandroid-library

Android export apk throws ActivityNotFoundException


I've created a project that have 3 dependencies for 3 different android projects marked as libraries. I managed to run the application from eclipse and everything works fine.

The problem: I've exported the project as a signed apk. The apk was created and I was able to run it on my device but when it tries to access an activity that resides in one of the android library my app crashes with ActivityNoFoundException. It seems that the android library projects were not added in the final apk, but why?

All the manifest files are merged into the main manifest file.

What can be the problem? Thank you!


Solution

  • Does your project use proguard obfuscation? it's possible the activity names are being obfuscated and therefore would not match up with what's in your manifest. Usually obfuscation isn't run when you run the app from an IDE so could also explain why it works there. You could also try unzipping the apk and looking inside to see what is actually making it in