java.lang.VerifyError: Verifier rejected class bad method

报错代码

我修改了smali代码

 invoke-virtual {p0}, Lcom/test/soma/video/TestActivity;
 ->getApplicationContext()Landroid/content/Context;
 move-result-object v3

/*
对应java源码是
this.getApplicationContext()
*/

正确代码

  iget-object v3, p0, Lcom/test/soma/video/TestActivity$1
  ;->this$0:Lcom/test/soma/video/TestActivity;

  invoke-virtual {v3}, Lcom/test/soma/video/TestActivity;
  ->getApplicationContext()Landroid/content/Context;

/*
对应java源码是
TestActivity.this.getApplicationContext()
*/

你可能感兴趣的:(Android)