Skip to content Skip to sidebar Skip to footer

Android::extending Mapactivity => Classnotfound Exception

I'd like to make a MapView, but extending the MapActivity throws a classNotFoundException: /AndroidRuntime( 374): at android.app.ActivityThread.performLaunchActivity(Act

Solution 1:

I had the exact same error for me I had to implement the android:required="true" statement, which has been left of a lot of tutorials.

<uses-libraryandroid:name="com.google.android.maps"android:required="true" />

Solution 2:

Also, if you forget to put the

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

tag inside your tag in your manifest you will get a ClassNotFound Exception for your activity that extends MapActivity :)

Solution 3:

Try setting package to "com.androidcourse.phonemapper.view":

<manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.androidcourse.phonemapper.view" android:versionCode="1"
android:versionName="1.0">

and then referencing it:

<activity android:name=".WelcomeActivity"

Solution 4:

you should uses-library tag inside application tag

<application><uses-libraryandroid:name="com.google.android.maps"android:required="true"/></application>

Post a Comment for "Android::extending Mapactivity => Classnotfound Exception"