Monday, June 14, 2010

noclassdefFounderror map view google maps android

Hi,
If you are facing the  NoClassDefFound Error while using Maps, it means you are not using the Google Api. I mean to say is you need to use Google API in Target in place of Android x.x (version). And also dont forget to include maps.jar. And three modification in xml files.
1. you need to include the Map Key in the main.xml (layout file).
2. you need to add in application attribute in Manifest file.
3. finally you need to give uses-permission to access internet. So add the following line.