Comments (10)
这个是robust生成补丁时候的类,我反编译那个jar包,看到有这个类,包名也正确,就是跟你一样报找不到这个类的bug
from robust.
终于知道问题所在了,因为我自己写的demo没有声明读取sd卡的权限。。。。。。 @djx1986sky
from robust.
我的demo有读取SD卡的权限的。。。但是还是报这个错误。。。@oubowu
from robust.
那你有改过robust.xml吗?就是生成补丁包名那个选项
from robust.
改过,如下
<switch>
<!--true代表打开Robust,这个会比较耗时建议release包在打开-->
<turnOnRobust>true</turnOnRobust>
<!--<turnOnRobust>false</turnOnRobust>-->
<!--是否开启手动模式,手动模式会去寻找配置项patchPackname包名下的所有类,自动的处理混淆,然后把patchPackname包名下的所有类制作成补丁-->
<!--<manual>true</manual>-->
<manual>false</manual>
<!--是否强制插入插入代码,Robust默认在debug模式下是关闭的,开启这个选项为true会在debug下插入代码-->
<!--<forceInsert>true</forceInsert>-->
<forceInsert>false</forceInsert>
<!--是否捕获补丁中所有反射的异常,建议上线的时候这个开关的值为true,测试的时候为false-->
<catchReflectException>true</catchReflectException>
<!--<catchReflectException>false</catchReflectException>-->
<!--是否在补丁加上log,建议上线的时候这个开关的值为false,测试的时候为true-->
<!--<patchLog>true</patchLog>-->
<patchLog>false</patchLog>
</switch>
<!--需要热补的包名或者类名,这些包名下的所有类都被会插入代码-->
<packname name="hotfixPackage">
<name>com.demon.app</name>
</packname>
<!--不需要热补的包名或者类名,可以在需要热补的包中剔除指定的类或者包-->
<exceptPackname name="exceptPackage">
<!-- <name>com.test.cn.robustapplication</name>-->
<patchPackname name="patchPackname">
<name>com.demon.patch</name>
</patchPackname>
<!--自动化补丁中,不需要反射处理的类,这个配置项慎重选择-->
<noNeedReflectClass name="classes no need to reflect">
</noNeedReflectClass>
from robust.
所以你的补丁包信息类名应该是com.demon.patch.PatchesInfoImpl,你可以反编译看看那个dex文件或者jar包
from robust.
好的,谢谢,我试试看!
from robust.
@djx1986sky @oubowu oubowu 正解
from robust.
@djx1986sky @oubowu oubowu 正解
老哥江湖救急 @add class patch.jar没有
from robust.
@djx1986sky @oubowu oubowu 正解
新增方法可以
from robust.
Related Issues (20)
- 多久不更新了,还维护吗
- 多久不更新了,还维护吗 HOT 4
- Robust support modular application? HOT 1
- annotation.XmlSchema
- cannot find META-INF.versions.9.module-info: module-info found in META-INF/versions/9/module-info.class HOT 3
- JCenter不可用问题 HOT 1
- 关于Robust应用在sdk热更出现的问题 HOT 1
- 新增类 打patch失败
- viewModel协程代码块里的patch不生效
- Robust是如何处理如下问题的? HOT 1
- Robust2.0.4版本,热修复kotlin方法中含有lambda表达式的方法时,补丁生成不了! HOT 1
- 无法使用Robust,请问是什么问题? HOT 1
- 日志加载patch成功,但是修复失败 HOT 1
- 多久不更新了,还维护吗
- 补丁加载成功,但是跳转卡死了
- 补丁打包成功,开启修复,日志一切打印正常,但是就是没有修复成功,还是执行老的代码 HOT 1
- Different stack heights at jump target: 0 != 1
- Gradle7.0+,Java11,ASM7的兼容 HOT 2
- mapping line info is error # {"id":"sourceFile","fileName":"..."} HOT 4
- Cannot cast object 'task ':app:packageCeshi_envRelease' property 'resourceFiles'' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robust.