hi, I'm trying to run some code I got from a book (written for sdk 1.1_r1)
and I have problems when the aplication starts. In the LogCat this exception
appears:

09-15 17:55:06.800: ERROR/AndroidRuntime(754): java.lang.IllegalAccessError:
cross-loader access from pre-verified class
09-15 17:55:06.800: ERROR/AndroidRuntime(754):     at
dalvik.system.DexFile.defineClass(Native Method)
09-15 17:55:06.800: ERROR/AndroidRuntime(754):     at
dalvik.system.DexFile.loadClass(DexFile.java:193)
09-15 17:55:06.800: ERROR/AndroidRuntime(754):     at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:203)
09-15 17:55:06.800: ERROR/AndroidRuntime(754):     at
java.lang.ClassLoader.loadClass(ClassLoader.java:573)
09-15 17:55:06.800: ERROR/AndroidRuntime(754):     at
java.lang.ClassLoader.loadClass(ClassLoader.java:532)
09-15 17:55:06.800: ERROR/AndroidRuntime(754):     at
android.app.Instrumentation.newActivity(Instrumentation.java:1097)
09-15 17:55:06.800: ERROR/AndroidRuntime(754):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2186)
09-15 17:55:06.800: ERROR/AndroidRuntime(754):     at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284)
09-15 17:55:06.800: ERROR/AndroidRuntime(754):     at
android.app.ActivityThread.access$1800(ActivityThread.java:112)
09-15 17:55:06.800: ERROR/AndroidRuntime(754):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
09-15 17:55:06.800: ERROR/AndroidRuntime(754):     at
android.os.Handler.dispatchMessage(Handler.java:99)
09-15 17:55:06.800: ERROR/AndroidRuntime(754):     at
android.os.Looper.loop(Looper.java:123)
09-15 17:55:06.800: ERROR/AndroidRuntime(754):     at
android.app.ActivityThread.main(ActivityThread.java:3948)
09-15 17:55:06.800: ERROR/AndroidRuntime(754):     at
java.lang.reflect.Method.invokeNative(Native Method)
09-15 17:55:06.800: ERROR/AndroidRuntime(754):     at
java.lang.reflect.Method.invoke(Method.java:521)
09-15 17:55:06.800: ERROR/AndroidRuntime(754):     at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
09-15 17:55:06.800: ERROR/AndroidRuntime(754):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
09-15 17:55:06.800: ERROR/AndroidRuntime(754):     at
dalvik.system.NativeStart.main(Native Method)

Do you know where can be my mistake?

I'm using sdk 1.5 and jdk1.6.0_14.

Thanks!

Iván

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to