Hi guys,
Following the Google IO, a new version of the Android SDK tools was released. Unfortunately this new version casues with Android Library Projects,o I figured I should share the solution with you guys.
The symptoms are as follows:
- Projects that use library projects give errors concerning missing build path libraries.
- At runtime, apps throw a ClassNotFoundException when starting an activity.
The solution:
- In the Android SDK manager, make sure you updated your tools to the latest version:
- Android SDK Tools: rev. 22
- Android SDK Platform Tools to Rev. 17 (in my case I needed to update to 16.0.2 first)
- Android SDK Build tools: rev. 17 (in my case this package was not available until the Platform tools package was updated to 16.0.2)
- In Eclipse, make sure the Android toolkit is also updated to version 22.x (go to Help > Check for Updates)
- For each project that is causing problems:
- go to the Build Path configuration,
- open the Order & Export tab,
- make sure the entry for "Android Private Libraries" is checked. Note: "Android Dependencies" is not required.
- Clean the project(s) to force a new build
- Win.
I hope this helps!
Steven