Classnotfound Launchig Maps Activity Declared In Android Library
I am getting this exception when trying to start an activity (TestLocationActivity) that is derived from MapActivity, and which is declared inside an Android library project: 09-08
Solution 1:
If you want to use the MapView provided by google you need to complete 3 steps:
- Obtain an Api Key for your debug and deploy certificate and use the right one inside your app
- Use an Emulator or Device that comes with the Google API. During creation of an AVD you can choose if the device should be with or without the Google Libraries.
- Register the usage of the Google Maps Library in your Manifest. This is done through adding:
<uses-library android:name="com.google.android.maps" />
to the application tag of your manifest. Be sure that the uses library is inside the application tag and not only in your manifest
Solution 2:
Did you register TestLocationActivty in your manifest?
Solution 3:
maybe this can help you.
Did you register to obtain a Maps API Key? This may be the reason for your problem.
Solution 4:
Just a guess: have you chosen the right SDK for your project? You have the choice of every version twice. One with Google API and one without and to use maps, you should used the version with Google API.
Post a Comment for "Classnotfound Launchig Maps Activity Declared In Android Library"