I've seen problems like this.  There appears to be no discernable
rhyme and reason as to when a VerifyError will be thrown.  The only
way to know is to run your code.

If it only happens with the release build, I suspect a ProGuard
optimization issue.




On May 26, 3:05 pm, Dave Johnston <john...@gmail.com> wrote:
> I managed to extract a crash log. This crash also happens on the
> emulator:
>
> 05-26 06:57:08.516: ERROR/dalvikvm(339): Could not find method
> android.app.Activity.invalidateOptionsMenu, referenced from method
> android.support.v4.app.FragmentActivity.supportInvalidateOptionsMenu
> 05-26 06:57:08.516: WARN/dalvikvm(339): VFY: unable to resolve virtual
> method 124: Landroid/app/Activity;.invalidateOptionsMenu ()V
> 05-26 06:57:08.516: WARN/dalvikvm(339): VFY:  rejecting opcode 0x6e at
> 0x0006
> 05-26 06:57:08.516: WARN/dalvikvm(339): VFY:  rejected Landroid/
> support/v4/app/FragmentActivity;.supportInvalidateOptionsMenu ()V
> 05-26 06:57:08.516: WARN/dalvikvm(339): Verifier rejected class
> Landroid/support/v4/app/FragmentActivity;
> 05-26 06:57:08.516: WARN/dalvikvm(339): Class init failed in
> newInstance call (Luk/co/johnsto/android/alf/activities/HomeActivity;)
> 05-26 06:57:08.526: DEBUG/AndroidRuntime(339): Shutting down VM
> 05-26 06:57:08.526: WARN/dalvikvm(339): threadid=3: thread exiting
> with uncaught exception (group=0x4001aa28)
>
> Only appears to occur in release builds. Any ideas?
>
> -dave
>
> On May 17, 7:44 am, Dave Johnston <john...@gmail.com> wrote:
>
>
>
> > A user of mine is encountering a crash every time they start my
> > application:
>
> > java.lang.VerifyError: android.support.v4.app.FragmentManagerImpl
> > at android.support.v4.app.FragmentActivity.<init>(SourceFile:87)
> > (...)
>
> > Their phone is a Sony Ericsson U20i (Xperia X10 Mini Pro) running
> > Android 1.6.
>
> > I understand the Fragments compatibility library supports Android 1.6,
> > and thatVerifyErrorexceptions typically occur on outdated or
> > unsupported systems, so would this error suggest the U20i isn't
> > entirely compatible?
>
> > Regards,
> > Dave- 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

Reply via email to