I got the answer.. Its because I am using android API level.. instead We should use Google API level...
On Aug 4, 9:59 pm, JR <james...@gmail.com> wrote: > I got this error and it was caused from the: > <uses-library android:name="com.google.android.maps" /> > Being missing from my Manifest.xml, it needs to be within the > <application> tag. > I agree it is odd to get a NoClassDefFoundError... but there it is! > > On Jul 29, 12:45 am, Steve Howard <ste...@android.com> wrote: > > > On Mon, Jul 26, 2010 at 10:44 AM, Pravin Parulekar > > <pparu...@gmail.com>wrote: > > > > 07-26 23:03:20.259: WARN/dalvikvm(307): threadid=1: thread exiting > > > with uncaught exception (group=0x4001d800) > > > 07-26 23:03:20.397: ERROR/AndroidRuntime(307): FATAL EXCEPTION: main > > > 07-26 23:03:20.397: ERROR/AndroidRuntime(307): > > > java.lang.NoClassDefFoundError: com.mobilo.movie.DrawTheatreMap > > > 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at > > > com.mobilo.movie.MainListingA$1.onItemClick(MainListingA.java:101) > > > There's no Android code involved here. I'm guessing if you try > > > System.out.println(DrawTheatreMap.class); > > > at the same place, you'll get the same exception. Nothing specific to > > Intent or startActivity. > > > If so, you've likely got something wrong with your build process. One thing > > to try is looking in bin/classes/... to see if DrawTheatreMap.class is in > > there somewhere. Another thing would be to run dexdump (included in the > > SDK) on bin/classes.dex and see if DrawTheatreMap.class is included in > > there. > > > It's possible this is caused by something maps-specific. For example, if > > you don't have the correct <uses-library> tag in the right place in your > > AndroidManifest.xml, then perhaps the problem is that the classloader can't > > find MapActivity -- though honestly, I would expect this to throw a > > NoClassDefFoundError on MapActivity, not on DrawTheatreMap. But who knows, > > Dalvik is crazy sometimes :) > > > Let me know if any of this turns up something interesting, or if you're > > still stuck. > > > Steve -- 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