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

前端 未结 10 2062
渐次进展
渐次进展 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:11

    Verify Error is majorly thrown in certain scenarios which occurs if we changed definition of class A, but class B was compiled using an older version of the class A. That's why it gets resolved if we clear our project and rebuild all the classes together with same version of Java.

    Following link lists some of the scenarios where Verify error might occur. java.lang.VerifyError – How to solve VerifyError

提交回复
热议问题