this week I've tried to convert one of my existing projects into a library project, and use this library in my app project. I basically followed all the steps in Google's description, and everything looks good in Eclipse: The compiler is happy, no errors.
The thing is: An .apk file is generated, which is missing all classes from the library project! Everything else is there, resources and the R file from both projects - but not the classes from the library.
After my research in the last days I only found one thing that looks weird (apart from the ClassNotFoundException when trying to run the app), which is the console output when starting the app in the emulator:
- Code: Select all
[2010-08-27 21:13:02 - com.grbrg.MyApp] Installing com.grbrg.MyApp.apk...
[2010-08-27 21:13:11 - com.grbrg.MyApp] Success!
[2010-08-27 21:13:12 - com.grbrg.MyLib] Could not find com.grbrg.MyLib.apk!
[2010-08-27 21:13:12 - com.grbrg.MyApp] Starting activity com.grbrg.MyApp.MainActivity on device
Does anyone have an idea what's wrong here? Any help is appreciated very much!