[android-developers] Re: VerifyError - how can I solve this error?
Hi! @Street of Boston: Under what version of the Android OS did you compile your app? I compiled it with the manifest-entry: android:minSdkVersion=2 Under what version of the Android OS is your app actually running? I don't know. It was an anonymous remote stacktrace of somebody, who is using my game which is in the market. @fadden I cannot find the program dexdeps in the android tools folder and also a search in google just gives me 3 results. Greetings, Martin On 4 Feb., 04:26, fadden fad...@android.com wrote: On Feb 3, 5:54 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Under what version of the Android OS did you compile your app? Under what version of the Android OS is your app actually running? I believe the emulator can be configured to behave like older versions of the Android OS. This may be useful here. There is a tool called dexdeps (see dalvik/tools/dexdeps in the sources) that will emit a list of all fields and methods that are referenced by an APK but not resolved by classes within the APK. The idea is to see the set of things it depends on. My intention is that the output of this can be combined with the N.xml API description files to determine at a basic level if an APK is compatible with a certain version of the Android API. FWIW, Android 2.x will give you a more specific exception (NoSuchMethod, ClassNotFound) at the point of the failure rather than an ambiguous VerifyError for the entire class. Unfortunately it's likely failing on the older versions of the OS. -- 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
[android-developers] Re: VerifyError - how can I solve this error?
On my mobile, I do NOT have the VerifyError! This is strange. I just get the Error-Messages from Flurry-Analytics from people, who downloaded my game in the market, so I think that these error-messages come from a specific Android OS? What does it mean that some part of a class failed verification? Which verification? Greetings, Martin On 2 Feb., 00:19, fadden fad...@android.com wrote: On Jan 30, 3:16 am, Martin google-gro...@digle.de wrote: I am analyzing my game with flurry-analytics and some people, who play my game, receive the Exception java.lang.VerifyError in my Highscore- Activity. What do I have to do to solve this error? To figure this out you really need to see the log message associated with the failure. Verification errors generally mean that some part of a class failed verification, and as a result the entire class has been rejected by the VM. It should be 100% repeatable. The logcat output will tell you in great detail what went wrong and where. Are the failures always associated with a specific version of the Android OS? -- 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
[android-developers] Re: VerifyError - how can I solve this error?
To help you, you need to post the log (form LogCat) showing the stack- trace of the VerifyError. As an example, VerifyErrors can occur when you load a class compiled in Android 1.6 and using/calling 1.6 specific fields/methods and then the class is run in a Android 1.5 environment. I had one such (coding) error in my app, which should run on 1.5 (and up) e.g. i used the BitmapFactory.Options.inDensity field, which works fine on 1.6 (or higher) phones. However, when i ran my app on a 1.5 phone, i got a VerifyError because of the use of use of 'inDensity' in my app's class. On Feb 3, 5:45 am, Martin google-gro...@digle.de wrote: On my mobile, I do NOT have the VerifyError! This is strange. I just get the Error-Messages from Flurry-Analytics from people, who downloaded my game in the market, so I think that these error-messages come from a specific Android OS? What does it mean that some part of a class failed verification? Which verification? Greetings, Martin On 2 Feb., 00:19, fadden fad...@android.com wrote: On Jan 30, 3:16 am, Martin google-gro...@digle.de wrote: I am analyzing my game with flurry-analytics and some people, who play my game, receive the Exception java.lang.VerifyError in my Highscore- Activity. What do I have to do to solve this error? To figure this out you really need to see the log message associated with the failure. Verification errors generally mean that some part of a class failed verification, and as a result the entire class has been rejected by the VM. It should be 100% repeatable. The logcat output will tell you in great detail what went wrong and where. Are the failures always associated with a specific version of the Android OS?- Hide quoted text - - Show quoted text - -- 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
[android-developers] Re: VerifyError - how can I solve this error?
Hi! Now I have 3 StackTraces: java.lang.VerifyError: digle.de.LeonardFrog.AHighscore at java.lang.Class.newInstance(Native Method) at android.app.Instrumentation.newActivity(Instrumentation.java: 1096) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2061) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2157) at android.app.ActivityThread.access$1800(ActivityThread.java: 112) at android.app.ActivityThread $H.handleMessage(ActivityThread.java:1581) at android.os.Handler.dispatchMessage(Handler.java:88) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:3739) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:739) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) at dalvik.system.NativeStart.main(Native Method) java.lang.VerifyError: digle.de.LeonardFrog.AHighscore at java.lang.Class.newInstance(Native Method) at android.app.Instrumentation.newActivity(Instrumentation.java: 1096) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2061) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2157) at android.app.ActivityThread.access$1800(ActivityThread.java: 112) at android.app.ActivityThread $H.handleMessage(ActivityThread.java:1581) at android.os.Handler.dispatchMessage(Handler.java:88) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:3739) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:739) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) at dalvik.system.NativeStart.main(Native Method) java.lang.VerifyError: digle.de.LeonardFrog.AHighscore at java.lang.Class.newInstance(Native Method) at android.app.Instrumentation.newActivity(Instrumentation.java: 1096) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2061) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2157) at android.app.ActivityThread.access$1800(ActivityThread.java: 112) at android.app.ActivityThread $H.handleMessage(ActivityThread.java:1581) at android.os.Handler.dispatchMessage(Handler.java:88) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:3739) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:739) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) at dalvik.system.NativeStart.main(Native Method) Can this help to find out the problem? Greetings, Martin -- 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
[android-developers] Re: VerifyError - how can I solve this error?
Oh, I found out that they are all the same, although I got them at different times. So to keep it clearly, here is just one of them: java.lang.VerifyError: digle.de.LeonardFrog.AHighscore at java.lang.Class.newInstance(Native Method) at android.app.Instrumentation.newActivity(Instrumentation.java: 1096) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2061) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2157) at android.app.ActivityThread.access$1800(ActivityThread.java: 112) at android.app.ActivityThread $H.handleMessage(ActivityThread.java:1581) at android.os.Handler.dispatchMessage(Handler.java:88) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:3739) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:739) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) at dalvik.system.NativeStart.main(Native Method) Greetings, Martin -- 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
[android-developers] Re: VerifyError - how can I solve this error?
They are all related to creating a new instance of AHighScore. Some part of the code in AHighScore uses a class, or classes, that are 'incompatible' with the version of the OS on which AHighScore would be running. Under what version of the Android OS did you compile your app? Under what version of the Android OS is your app actually running? On Feb 3, 8:34 pm, Martin google-gro...@digle.de wrote: Oh, I found out that they are all the same, although I got them at different times. So to keep it clearly, here is just one of them: java.lang.VerifyError: digle.de.LeonardFrog.AHighscore at java.lang.Class.newInstance(Native Method) at android.app.Instrumentation.newActivity(Instrumentation.java: 1096) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2061) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2157) at android.app.ActivityThread.access$1800(ActivityThread.java: 112) at android.app.ActivityThread $H.handleMessage(ActivityThread.java:1581) at android.os.Handler.dispatchMessage(Handler.java:88) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:3739) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:739) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) at dalvik.system.NativeStart.main(Native Method) Greetings, Martin -- 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
[android-developers] Re: VerifyError - how can I solve this error?
On Feb 3, 5:54 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Under what version of the Android OS did you compile your app? Under what version of the Android OS is your app actually running? I believe the emulator can be configured to behave like older versions of the Android OS. This may be useful here. There is a tool called dexdeps (see dalvik/tools/dexdeps in the sources) that will emit a list of all fields and methods that are referenced by an APK but not resolved by classes within the APK. The idea is to see the set of things it depends on. My intention is that the output of this can be combined with the N.xml API description files to determine at a basic level if an APK is compatible with a certain version of the Android API. FWIW, Android 2.x will give you a more specific exception (NoSuchMethod, ClassNotFound) at the point of the failure rather than an ambiguous VerifyError for the entire class. Unfortunately it's likely failing on the older versions of the OS. -- 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
[android-developers] Re: VerifyError - how can I solve this error?
On Feb 3, 5:54 pm, Streets Of Boston flyingdutc...@gmail.com wrote: Under what version of the Android OS did you compile your app? Under what version of the Android OS is your app actually running? I believe the emulator can be configured to behave like older versions of the Android OS. This may be useful here. There is a tool called dexdeps (see dalvik/tools/dexdeps in the sources) that will emit a list of all fields and methods that are referenced by an APK but not resolved by classes within the APK. The idea is to see the set of things it depends on. My intention is that the output of this can be combined with the N.xml API description files to determine at a basic level if an APK is compatible with a certain version of the Android API. FWIW, Android 2.x will give you a more specific exception (NoSuchMethod, ClassNotFound) at the point of the failure rather than an ambiguous VerifyError for the entire class. Unfortunately it's likely failing on the older versions of the OS. -- 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
[android-developers] Re: VerifyError - how can I solve this error?
On Jan 30, 3:16 am, Martin google-gro...@digle.de wrote: I am analyzing my game with flurry-analytics and some people, who play my game, receive the Exception java.lang.VerifyError in my Highscore- Activity. What do I have to do to solve this error? To figure this out you really need to see the log message associated with the failure. Verification errors generally mean that some part of a class failed verification, and as a result the entire class has been rejected by the VM. It should be 100% repeatable. The logcat output will tell you in great detail what went wrong and where. Are the failures always associated with a specific version of the Android OS? -- 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