Android activity class not found exception -


i know trun out stupid question, please don't throw me off looking @ title. weirdest thing happening me once try start mapactivity extended class android application.

i know there lots of questoins on this, did research of them focused on checking names correspond, none of them have worked me.

even though updated manifest class there classnotfound exception...

let me know doing wrong please.

android manifest:

<activity         android:name="ro.gebs.captoom.activities.locationactivity"         android:label="@string/app_name" >         <intent-filter>             <action android:name="android.intent.action.main" />              <category android:name="android.intent.category.launcher" />         </intent-filter>     </activity> 

locationactivity class:

package ro.gebs.captoom.activities;  import android.os.bundle;  import com.example.captoom.r; import com.google.android.maps.mapactivity; import com.google.android.maps.mapview; import com.google.android.maps.mylocationoverlay;  public class locationactivity extends mapactivity {      mapview mapview = null;     mylocationoverlay mylocationoverlay = null;      @override     public void oncreate(bundle savedinstancestate) {         super.oncreate(savedinstancestate);          // main.xml contains mapview         setcontentview(r.layout.preview_location);          // extract mapview layout         mapview = (mapview) findviewbyid(r.id.mapview);         mapview.setbuiltinzoomcontrols(true);          // create overlay shows our current location         mylocationoverlay = new mylocationoverlay(this, mapview);          // add overlay mapview , refresh         mapview.getoverlays().add(mylocationoverlay);         mapview.postinvalidate();     }      @override     protected boolean isroutedisplayed() {         return false;     }      @override     protected void onresume() {         super.onresume();         // when our activity resumes, want register location updates         mylocationoverlay.enablemylocation();     }      @override     protected void onpause() {         super.onpause();         // when our activity pauses, want remove listening location         // updates         mylocationoverlay.disablemylocation();     } } 

and error log:

07-31 09:35:34.227: e/androidruntime(14613): fatal exception: main 07-31 09:35:34.227: e/androidruntime(14613): java.lang.runtimeexception: unable instantiate activity componentinfo{com.example.captoom/ro.gebs.captoom.activities.locationactivity}: java.lang.classnotfoundexception: ro.gebs.captoom.activities.locationactivity 07-31 09:35:34.227: e/androidruntime(14613):    @ android.app.activitythread.performlaunchactivity(activitythread.java:2034) 07-31 09:35:34.227: e/androidruntime(14613):    @ android.app.activitythread.handlelaunchactivity(activitythread.java:2135) 07-31 09:35:34.227: e/androidruntime(14613):    @ android.app.activitythread.access$700(activitythread.java:140) 07-31 09:35:34.227: e/androidruntime(14613):    @ android.app.activitythread$h.handlemessage(activitythread.java:1237) 07-31 09:35:34.227: e/androidruntime(14613):    @ android.os.handler.dispatchmessage(handler.java:99) 07-31 09:35:34.227: e/androidruntime(14613):    @ android.os.looper.loop(looper.java:137) 07-31 09:35:34.227: e/androidruntime(14613):    @ android.app.activitythread.main(activitythread.java:4921) 07-31 09:35:34.227: e/androidruntime(14613):    @ java.lang.reflect.method.invokenative(native method) 07-31 09:35:34.227: e/androidruntime(14613):    @ java.lang.reflect.method.invoke(method.java:511) 07-31 09:35:34.227: e/androidruntime(14613):    @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1038) 07-31 09:35:34.227: e/androidruntime(14613):    @ com.android.internal.os.zygoteinit.main(zygoteinit.java:805) 07-31 09:35:34.227: e/androidruntime(14613):    @ dalvik.system.nativestart.main(native method) 07-31 09:35:34.227: e/androidruntime(14613): caused by: java.lang.classnotfoundexception: ro.gebs.captoom.activities.locationactivity 07-31 09:35:34.227: e/androidruntime(14613):    @ dalvik.system.basedexclassloader.findclass(basedexclassloader.java:61) 07-31 09:35:34.227: e/androidruntime(14613):    @ java.lang.classloader.loadclass(classloader.java:501) 07-31 09:35:34.227: e/androidruntime(14613):    @ java.lang.classloader.loadclass(classloader.java:461) 07-31 09:35:34.227: e/androidruntime(14613):    @ android.app.instrumentation.newactivity(instrumentation.java:1068) 07-31 09:35:34.227: e/androidruntime(14613):    @ android.app.activitythread.performlaunchactivity(activitythread.java:2025) 07-31 09:35:34.227: e/androidruntime(14613):    ... 11 more 

please note build targets google api platform if makes difference...

edit excluded google play services library had included in project, error log changes this:

07-31 09:51:44.433: e/androidruntime(14918): fatal exception: main 07-31 09:51:44.433: e/androidruntime(14918): java.lang.noclassdeffounderror: ro.gebs.captoom.activities.locationactivity 

thanks!

well mapactivity no more used.. try out example.

google maps


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -