I’m attempting to run an Android app, that makes use of Google’s map API, onto the Android simulator via the Eclipse plugin.
Even though I have the Google APIs installed, when I created my initial project, the links to the API jars where not included. So I copied maps.jar from android-sdk-linux/add-ons/addon-google_apis-google-16/libs into my project’s libs folder, and that resolved all the reference errors.
However, when I go to “Run” (Ctrl+F11) my app on the simulator, it fails with the error Package com.mydomain.myapp requires unavailable shared library com.google.android.maps; failing!
I have several other jars in my libs folder, and I’m not getting any errors for those. Why isn’t it copying over the maps.jar? How do I resolve this error?
Are you targeting the Google APIs when you create your project? Try this: