Just check that u hv the latest java version installed . 1.5 or above is enough. See this too.. i know its not related to any coding issue http://developer.android.com/reference/java/lang/UnsupportedClassVersionError.html
On Tue, Sep 8, 2009 at 11:52 PM, Alok Kulkarni <[email protected]> wrote: > This error is caused when you compile a .java file with one version of JDK > and running the .class file with a different version of JVM. > > You may say; same version is not required to compile and run. > > Yes, that is true. But you can not run .class files that are compiled with > a newer version than the JVM. > > * > * > > *javac (compile) - version: X* > *java (run) - version: Y* > > * > * > > If X is newer than Y; then you may face this issue at runtime. > > > > On Sun, Sep 6, 2009 at 2:48 PM, monali <[email protected]> wrote: > >> >> Hi, >> >> I m getting while creating AVD. >> I have excuted following command for creating AVD. >> >> android create avd --target 2 --name my_avd >> >> Getting following error: >> >> java.lang.UnsupportedClassVersionError. >> >> Kindly suggest for the same. >> >> Thanks >> Monali >> >> >> >> >> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

