Rejecting class because it failed compile-time verification Android

后端 未结 5 757
北海茫月
北海茫月 2020-12-11 03:25

One of my application suddenly fails on startup, with the following error message :

java.lang.VerifyError: Rejecting class com.sample.BufferManager

5条回答
  •  遥遥无期
    2020-12-11 04:08

    i had this problem to with android 5. my app did correctly on 4 or below but on android 5 devices i had crash.

    i broke my codes with multiple Threads and it fixed. if your code wants to change the UI use handler .

     Thread Thread = new Thread(new Runnable() {
    
            @Override
            public void run() {
                // TODO Auto-generated method stub
                handler.post(new Runnable() {
    
                    @Override
                    public void run() {
                        use this if your codes will change the Ui
    

    . . . . .

提交回复
热议问题