Fwd: Android SDK Update and Library Projects

14 views
Skip to first unread message

Ahmy Yulrizka

unread,
May 22, 2013, 11:41:18 AM5/22/13
to commonsense...@googlegroups.com
From: Steven Mulder

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:
  1. In the Android SDK manager, make sure you updated your tools to the latest version:
    1. Android SDK Tools: rev. 22
    2. Android SDK Platform Tools to Rev. 17 (in my case I needed to update to 16.0.2 first)
    3. 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)
  2. In Eclipse, make sure the Android toolkit is also updated to version 22.x (go to Help > Check for Updates)
  3. For each project that is causing problems: 
    1. go to the Build Path configuration,
    2. open the Order & Export tab, 
    3. make sure the entry for "Android Private Libraries" is checked. Note: "Android Dependencies" is not required. 
  4. Clean the project(s) to force a new build
  5. Win.
I hope this helps!

Steven
Reply all
Reply to author
Forward
0 new messages