hi, Did you generate your emulator image with AVD and using target 3? This type of emulator contains maps.jar in native and all is ok.
Regards On May 22, 4:17 pm, "mobilek...@googlemail.com" <mobilek...@googlemail.com> wrote: > Hi, > > I have a problem with firing an activity that extends MapActivity. > When it gets called, it throws a java.lang.NoClassDefFoundError... > not sure what this is supposed to mean. I think something goes wrong > with the external implementation of the maps API (maps.jar). Has > anyone come across that problem? Here's the srack trace: > > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): > java.lang.NoClassDefFoundError: main.ViewContactActivity > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > main.ContactsActivity.onOptionsItemSelected(ContactsActivity.java:311) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > android.app.Activity.onMenuItemSelected(Activity.java:2085) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected > (PhoneWindow.java:820) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java: > 139) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > com.android.internal.view.menu.MenuBuilder.performItemAction > (MenuBuilder.java:813) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > com.android.internal.view.menu.IconMenuView.invokeItem > (IconMenuView.java:519) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > com.android.internal.view.menu.IconMenuItemView.performClick > (IconMenuItemView.java:122) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > android.view.View.onTouchEvent(View.java:3828) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > android.widget.TextView.onTouchEvent(TextView.java:6291) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > android.view.View.dispatchTouchEvent(View.java:3368) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > com.android.internal.policy.impl.PhoneWindow > $DecorView.dispatchTouchEvent(PhoneWindow.java:1691) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > android.view.ViewRoot.handleMessage(ViewRoot.java:1525) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > android.os.Handler.dispatchMessage(Handler.java:99) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > android.os.Looper.loop(Looper.java:123) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > android.app.ActivityThread.main(ActivityThread.java:3948) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > java.lang.reflect.Method.invokeNative(Native Method) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > java.lang.reflect.Method.invoke(Method.java:521) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run > (ZygoteInit.java:782) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > dalvik.system.NativeStart.main(Native Method) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): Caused by: > java.lang.IllegalAccessError: cross-loader access from pre-verified > class > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > dalvik.system.DexFile.defineClass(Native Method) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > dalvik.system.DexFile.loadClass(DexFile.java:193) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > dalvik.system.PathClassLoader.findClass(PathClassLoader.java:203) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > java.lang.ClassLoader.loadClass(ClassLoader.java:573) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): at > java.lang.ClassLoader.loadClass(ClassLoader.java:532) > 05-22 15:13:36.723: ERROR/AndroidRuntime(445): ... 22 more > > Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---