java.lang.VerifyError: Verifier rejected class on Lollipop when using release APK

前端 未结 10 2068
渐次进展
渐次进展 2020-12-05 06:22

I get this error when I install my release APK on a 5.x device. The error does not occur when I push the same code from Android Studio, or if I run it on a

10条回答
  •  执念已碎
    2020-12-05 07:06

    In my case, the cause was slightly different.

    Apparently, putting a synchronized statement inside a try/catch block causes the VerifyError, as reported here on SO and on the official bug tracker.

提交回复
热议问题