Git Product home page Git Product logo

Comments (10)

oubowu avatar oubowu commented on May 20, 2024

这个是robust生成补丁时候的类,我反编译那个jar包,看到有这个类,包名也正确,就是跟你一样报找不到这个类的bug

from robust.

oubowu avatar oubowu commented on May 20, 2024

终于知道问题所在了,因为我自己写的demo没有声明读取sd卡的权限。。。。。。 @djx1986sky

from robust.

djx1986sky avatar djx1986sky commented on May 20, 2024

我的demo有读取SD卡的权限的。。。但是还是报这个错误。。。@oubowu

from robust.

oubowu avatar oubowu commented on May 20, 2024

那你有改过robust.xml吗?就是生成补丁包名那个选项

from robust.

djx1986sky avatar djx1986sky commented on May 20, 2024

改过,如下

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

oubowu avatar oubowu commented on May 20, 2024

所以你的补丁包信息类名应该是com.demon.patch.PatchesInfoImpl,你可以反编译看看那个dex文件或者jar包

from robust.

djx1986sky avatar djx1986sky commented on May 20, 2024

好的,谢谢,我试试看!

from robust.

mivanzhang avatar mivanzhang commented on May 20, 2024

@djx1986sky @oubowu oubowu 正解

from robust.

awxy avatar awxy commented on May 20, 2024

@djx1986sky @oubowu oubowu 正解
老哥江湖救急 @add class patch.jar没有

from robust.

awxy avatar awxy commented on May 20, 2024

@djx1986sky @oubowu oubowu 正解

新增方法可以

from robust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.