Android Xposed framework has the java. lang. IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation problem, android

Source: Internet
Author: User

Android Xposed framework has the java. lang. IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation problem, android

The first time I played the Xposed framework, I wrote a demo in the format of multiple demos and found that

public abstract void handleLoadPackage(LoadPackageParam lpparam) throws Throwable;

Method, go/Data/de. robv. android. xposed. installer/log/error. logCheck and find the crash

 

Loading modules from /data/app/com.example.xposed-1.apk  Loading class com.example.xposed.Testjava.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation    at dalvik.system.DexFile.defineClassNative(Native Method)    at dalvik.system.DexFile.defineClass(DexFile.java:222)    at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:215)    at dalvik.system.DexPathList.findClass(DexPathList.java:322)    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54)    at java.lang.ClassLoader.loadClass(ClassLoader.java:497)    at java.lang.ClassLoader.loadClass(ClassLoader.java:457)    at de.robv.android.xposed.XposedBridge.loadModule(XposedBridge.java:421)    at de.robv.android.xposed.XposedBridge.loadModules(XposedBridge.java:386)    at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:120)    at dalvik.system.NativeStart.main(Native Method)

 

After query, it is found that the Xposed framework has a java. lang. IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation problem becauseXposedBridgeApi. jarNeed to be placed inLibFolder, and then select the jar package to add it to build_path, which cannot be placed in

In libs of the Android project.

 

If you did not see this article in wb145230, click to view the original article.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.