Closed fpleihub closed 7 years ago
运行gradle命令的时候加上--stacktrace
我这里使用注释@Add或者@Modify 都会报错,但是使用RobustModify.modify()就可以正常生成patch.jar 包,但是在加载补丁时还是出现了找不到PatchesInfoImpl这个类。我想问下,这个类在哪里?看你们的配置说robust.xml里面和PatchManipulateImp一致就可以了。 我这里是这样的:
robust.xml
<patchPackname name="patchPackname">
<name>com.demorotbusfix.patch</name>
</patchPackname>
PatchManipulateImp.java
....
patch.setPatchesInfoImplClassFullName("com.demorotbusfix.patch.PatchesInfoImpl");
这个类在项目里面时不存在的呀
那你改成com.meituan.robust.patch.PatchesInfoImpl试试呢?
改成com.meituan.robust.patch.PatchesInfoImpl这个也不行呢。
robust.xml:
<patchPackname name="patchPackname">
<name>com.meituan.robust.patch.PatchesInfoImpl</name>
</patchPackname>
PatchManipulateImp.java
patch.setPatchesInfoImplClassFullName("com.meituan.robust.patch.PatchesInfoImpl");
加载补丁后:
PatchsInfoImpl failed,cause ofjava.lang.ClassNotFoundException: Didn't find class "com.meituan.robust.patch.PatchesInfoImpl" on path: DexPathList[[],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]
你是不是补丁的位置放错了,根本没有加载到补丁?
谢谢,这个问题已经解决,补丁包加载成功,这个每次进入app都需要重新加载一次补丁包吗,这样的话这个补丁包放在sd卡中被删除就只能重新下载了。
每次进入app都需要重新加载一次补丁,你可以把补丁放到私有目录,个性化定制吧
异常类型:app编译异常
Robust版本:0.4.5
Gradle版本:2.3.2
系统:Mac
堆栈/日志: 我使用0.3.3是可以编译通过生成patch.jar文件,但是使用0.4.5版本的robust生成补丁时一直报:“app:transformClassesWithAutoPatchTransformForRelease”不知为何,该有的参数我根据官方的demo来的,并且官方git clone下来demo也是一样的编译错误。 日志: