Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PatchsInfoImpl failed #31

Closed
mufaith opened this issue Mar 20, 2017 · 17 comments
Closed

PatchsInfoImpl failed #31

mufaith opened this issue Mar 20, 2017 · 17 comments

Comments

@mufaith
Copy link

mufaith commented Mar 20, 2017

image

@madongqiang2201
Copy link

我也遇到同样的问题,

PatchsInfoImpl failed,cause ofjava.lang.ClassNotFoundException: Didn't find class "com.meituan.robust.patch.PatchesInfoImpl" on path: DexPathList[[zip file "/storage/emulated/0/robust/patch_temp.jar"],nativeLibraryDirectories=[/system/lib64, /vendor/lib64]]

我尝试把setPatchesInfoImplClassFullName设置的包名改成自己的,并和

<patchPackname name="patchPackname">
    <name>com.example.robustdemo.patch</name>
</patchPackname>

这里设置的包名一致,但是还是报同样的错误,请问怎么解决?

@mufaith
Copy link
Author

mufaith commented Mar 20, 2017

@madongqiang2201 还没解决 卡住了

@mufaith
Copy link
Author

mufaith commented Mar 20, 2017

@madongqiang2201 你解决了么

@madongqiang2201
Copy link

@mufaiths 还没有

@mufaith
Copy link
Author

mufaith commented Mar 20, 2017

@mivanzhang 这个应该是什么问题,请赐教

@hedex
Copy link
Member

hedex commented Mar 21, 2017

image

@madongqiang2201
Copy link

@hedex 已经设置过了,还是报错
image

image

还有com.meituan.robust.patch.PatchesInfoImpl的路径是固定的吗?和Robust.xml中的设置有关系吗?

image

@hedex
Copy link
Member

hedex commented Mar 21, 2017

可以把你生成的补丁给我看看吗?

@madongqiang2201
Copy link

@hedex 有时间请帮我看一下,谢谢
patch.jar.zip

@mivanzhang
Copy link
Member

@madongqiang2201 请修改成这个样子:

 <!--补丁的包名-->
    <patchPackname name="patchPackname">
        <name>com.meituan.robust.patch</name>
    </patchPackname>

@mufaith
Copy link
Author

mufaith commented Mar 22, 2017

@madongqiang2201 你解决了么

@madongqiang2201
Copy link

@mufaiths 没有, @mivanzhang 说的这种方法我早就试过了,但是还是遇到同样的问题;我暂时先不研究了,等过段时间,关于该项目的资料和问题相对多一些之后再说

@mivanzhang
Copy link
Member

@madongqiang2201 @mufaiths 可以把你们的apk和补丁文件发给我吗?我的邮箱是zhangmeng11@meituan.com,我看看是啥原因,

@mufaith
Copy link
Author

mufaith commented Mar 22, 2017

@mivanzhang
邮箱: mufaith_jun@163.com

@mivanzhang
Copy link
Member

你是使用的我们在jcenter里面的包吗?感觉像是补丁加载路径出错了,我们样例的中robust是加载/sdcard/robust的下面补丁,并且每次使用之后删除补丁,我使用了你们的样例,并没有删除补丁,所以你们的补丁加载路径应该是自己重新定义了,或者说我没有放到对应的位置

@vane002
Copy link

vane002 commented Mar 29, 2017

这个问题有解决么?为什么就关闭了呢?我也出现了同样的问题啊?

@TigerBetree
Copy link

无法生成补丁,报如下错误:
Caused by: java.lang.NullPointerException
at com.meituan.robust.autopatch.ReadMapping.initMappingInfo(ReadMapping.java:66)
at com.meituan.robust.autopatch.ReadMapping$initMappingInfo$1.call(Unknown Source)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants