Xposed出现 java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation

Xposed出现 java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation的解决方法

第一次在Xposed的框架下编写模块,在官方给的tutorial上就出现了问题,也安装好了就是不出效果,查看exposed的日志后天报出一堆错误,开头是

java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation

其实原因作者都写的明明白白,就是没在意,而且看了篇中文翻译,作者好像也忽视了对这个细节的强调。是因为XposedBridgeApi-<version>.jar这个包要放在lib文件夹下,需要自己新建一个lib文件夹,然后选中jar包添加到build_path,不能放在android工程自带的libs中去,因为编译方式不同,具体机制还没弄清楚。但是严格按照作者的介绍是好用的。

所以还是要直接看原文,还能培养英语。细心哦~

继续写模块

时间: 2024-08-06 16:12:33

Xposed出现 java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation的相关文章

【转】Xposed出现 java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation

Xposed出现 java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation的解决方法 第一次在Xposed的框架下编写模块,在官方给的tutorial上就出现了问题,也安装好了就是不出效果,查看exposed的日志后天报出一堆错误,开头是 java.lang.IllegalAccessError: Class ref in pre-verified cla

Android Xposed框架出现java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation问题

第一次玩Xposed框架,按照多个demo的格式写了一个demo发现死活不进入 public abstract void handleLoadPackage(LoadPackageParam lpparam) throws Throwable; 方法,去/data/data/de.robv.android.xposed.installer/log/error.log查看,发现crash了 Loading modules from /data/app/com.example.xposed-1.ap

java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementatio

错误信息: java.lang.IllegalAccessError: Class ref inpre-verified class resolved to unexpected implementatio 发生场景:在动态加载APK.jar的时候 错误分析:这种一般是引用重复(也就是你现在的APK和你要加载的APK.Jar之间有重复的引用),像在我的项目中遇到的问题就是:被加载的apk选择的最低版本在4.0以下,需要引用 android.support.v7.app.ActionBarActi

java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation getting while running test project?

转摘:http://stackoverflow.com/questions/11155340/java-lang-illegalaccesserror-class-ref-in-pre-verified-class-resolved-to-unexpe You are getting this error because of third party library reference added two times. You have added the application path in

java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory

java.lang.IllegalAccessError: tried to access field org.slf4j.impl.Static.. java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory 使用hbm2java时,使用hibernate-distribution- 3.3.1

java.lang.IllegalAccessError: class com.google.protobuf.HBaseZeroCopyByteString

hadoop mr 或者 spark 操作 hbase时候就出现这个错误 这是hbase的bug,可在jira上看到该问题:https://issues.apache.org/jira/browse/HBASE-10304 报错信息: 15/08/17 19:28:33 ERROR yarn.ApplicationMaster: User class threw exception: org.apache.hadoop.hbase.DoNotRetryIOException: java.lang

java.lang.IllegalAccessError: tried to access method org.apache.commons.codec.digest.DigestUtils.getDigest(Ljava/lang/String;)Ljava/security/MessageDigest; from class com.xyb.mis.pay.jingdong.util.Sig

严重: Servlet.service() for servlet [springmvc] in context with path [/xyb-mis-web] threw exception [Handler processing failed; nested exception is java.lang.IllegalAccessError: tried to access method org.apache.commons.codec.digest.DigestUtils.getDige

java.lang.NoClassDefFoundError

02-15 09:57:49.170: D/ActivityThread(25210): handleBindApplication:com.poxiao.fish02-15 09:57:49.170: D/ActivityThread(25210): setTargetHeapUtilization:0.7502-15 09:57:49.170: D/ActivityThread(25210): setTargetHeapMinFree:209715202-15 09:57:49.200: E

Cglib学习报错 java.lang.reflect.InvocationTargetException--&gt;null

package javacore.testForCglibProxy; import java.lang.reflect.Method; import net.sf.cglib.proxy.Enhancer; import net.sf.cglib.proxy.MethodInterceptor; import net.sf.cglib.proxy.MethodProxy; public class GetNewBook { public static void main(String[] ar