Summary of Android plug-in problems

  1. 异常java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementat

That is, if the class directly referenced in the above method (the first level relationship, no recursive search) and clazz are in the same dex, then this class will be marked with CLASS_ISPREVERIFIED

Obviously, the solution is to refer to a class in other dex in the plugin class, you can remove the same code as apkdex in the plugin generation process

Reference http://www.alloyteam.com/2014/04/android-cha-jian-yuan-li-pou-xi/ https://jaeger.itscoder.com/android/2016/09/20/nuva-source -code-analysis.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324980033&siteId=291194637