Java – the class ref in the pre validation class resolves to an unexpected implementation

I'm using Android studio and developing the xposed framework module. Most of my users can use my application normally, but two of them have problems and paste them below. I did some searches and tried to fix it (delete duplicate classes and change the jar library required by my application from 'compile' to 'provide') and had no luck. It's difficult for me to debug this, Can't reproduce the problem encountered by users. How can I solve this problem?

java.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)

resolvent:

Open module settings – application – dependencies

Change the xposed *. Jar scope to provided

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>