Android app with library can't find the library.apk

Posted by Dean Schulze on Stack Overflow See other posts from Stack Overflow or by Dean Schulze
Published on 2012-01-29T19:38:47Z Indexed on 2012/10/04 9:37 UTC
Read the original article Hit count: 150

Filed under:

I'm trying to get the FinchVideo example from the Programming Android book to work. It uses the FinchWelcome library. I've set up FinchWelcome as a Library and in the FinchVideo application I have checked the FinchWelcome library in Properties -> Android. When I try to run FinchVideo in the emulator it complains that it cannot find FinchWelcome.apk (output below). I'm building for Android 4.0.3.

While Googling for this problem I've found that a lot of people have this problem with Android apps that use libraries. No one seems to have found a solution that works consistently, though. None of the Android books I've seen even talk about how to download libraries.

What is the proper way to handle libraries in Android applications? Is this a bug in the Eclipse ADT?

Thanks.

[FinchVideo] Installing FinchVideo.apk...
[FinchVideo] Success!
[FinchWelcome] Could not find FinchWelcome.apk!
[FinchVideo] Starting activity com.oreilly.demo.pa.finchvideo.FinchVideoActivity on device emulator-5554

© Stack Overflow or respective owner

Related posts about android