menu_on_top
menu_on_top

Reputation: 2613

NoClassDefFoundError in mapActivity

i have this error in my map app.do you know what is wrong?i have checked and the package is right in my .java files and also i have put the uses-libraries of google maps into my application tag in the manifest.xml..please help,im trying hours to solve it..

Upvotes: 12

Views: 6123

Answers (3)

foufoutos
foufoutos

Reputation: 19

http://blog.doityourselfandroid.com/2011/01/18/using-google-maps-in-your-android-app/

Check the part about the API key if you are migrating your project to another development environment.

ps I am really surprised how people can pinpoint such a naive answer (as above) correct.

Upvotes: 1

Zarah
Zarah

Reputation: 5189

Make sure you have put in

<uses-library android:name="com.google.android.maps" />

inside your <application></application> tags.

Upvotes: 52

Jems
Jems

Reputation: 11620

You really need to post the relevant code.

Reading your question carefully, if you really put the uses-permission tag inside the application node, that is wrong. You should put permissions outside of it, but still inside the manifest node, so the end of your manifest file may look something like this:

 </application>
 <uses-sdk android:minSdkVersion="5" />
 <uses-permission android:name="android.permission.INTERNET"/>
 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
</manifest>

Eclipse may put them before the start of the <application> tag too, which is also fine.

Upvotes: 0

Related Questions