I haven't tried it, but you might be able to copy gmail from a rooted 2.x device. It came pre-installed on my Nexus One. I'm guessing that the reason it's not normally present on the emulators is that reading your mail on an emulator isn't generally something you'd want to be testing, rather than any copyright/license restrictions, but I don't actually know.
A ClassDefNotFound error generally does NOT mean that the class was not found -- that gives an ClassNotFoundException. Generally, it means that an exception happened while trying to load the class. Your stacktrace above isn't helpful to you, because Java STILL doesn't chain the original exception into the error, so the only way to track them down was to catch the exception being thrown in the debugger. Which is a bit painful, since you have to cast your net widely, and exceptions are normally thrown in the process of classloading, especially for ClassNotFound execption, which may be thrown many times during the loading of a single class (once per classloader tried). Chaining in the original exception would be a < 1 line fix; I don't know why they don't do it. I think they don't want the Market app on emulators for some security reason or other, but I really don't know. I suspect just copying that one won't work. It's one reason I went and got a development phone early in the process. On Feb 8, 12:37 pm, social hub <[email protected]> wrote: > Hi , > > I am trying to port 1.6 gmail app to android 2.0 on the emulator. > > I was able to install but when i execute the app i get no classdef found > error > 1) > E/AndroidRuntime( 494): Uncaught handler: thread main exiting due to > uncaught exception > E/AndroidRuntime( 494): java.lang.NoClassDefFoundError: > com.google.android.providers.gmail.MailProvider$1 > E/AndroidRuntime( 494): at > com.google.android.providers.gmail.MailProvider.onCreate(MailProvider.java: > 221) > E/AndroidRuntime( 494): at > android.content.ContentProvider.attachInfo(ContentProvider.java:710) > E/AndroidRuntime( 494): at > android.app.ActivityThread.installProvider(ActivityThread.java:4267) > E/AndroidRuntime( 494): at > android.app.ActivityThread.installContentProviders(ActivityThread.java:4042 ) > E/AndroidRuntime( 494): at > android.app.ActivityThread.handleBindApplicat > > How to resolve the class def error i can fidn the relevant jar files unde > /system/framwork is there an environment variabel that > can be set in the emulator prob thats missing a link > > 2)Is there a gmail app apk thats available for android 2.0 if so how do i > find the apk file to install > > 3) how do i get the market app to the emulator -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

