I am writing an android application however I am using the google maps api and when I run my code iI get the following error…
C:\android-sdk-windows\add-ons\addon-google_apis_google_inc maps.jar has no source attachment
and
E/AndroidRuntime(374): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{lbs.tutorial/lbs.tutorial.WhereAmIActivity}: java.lang.ClassNotFoundException: lbs.tutorial.WhereAmIActivity in loader dalvik.system.PathClassLoader[/data/app/lbs.tutorial-2.apk]
sure enough through windows explorer the add-ons folder is empty, cann anyone tell me how to get this jar file?
I have updated the google apis in the sdk and the adt plugin is up to date. Ive triple checked my files but im at a loss.
Thanks for looking
Peter
Make sure you’re targeting the right platform in your project. For each version of Android you can select the open-source version or the Google version (which has maps etc included).
In Eclipse: Right click on your project properties –> Android –> Select project build target (making sure that you click the Google APIs version).