-
Notifications
You must be signed in to change notification settings - Fork 803
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
patch.jar无法加载 #48
Comments
这个是robust生成补丁时候的类,我反编译那个jar包,看到有这个类,包名也正确,就是跟你一样报找不到这个类的bug |
终于知道问题所在了,因为我自己写的demo没有声明读取sd卡的权限。。。。。。 @djx1986sky |
我的demo有读取SD卡的权限的。。。但是还是报这个错误。。。@oubowu |
那你有改过robust.xml吗?就是生成补丁包名那个选项 |
改过,如下
|
所以你的补丁包信息类名应该是com.demon.patch.PatchesInfoImpl,你可以反编译看看那个dex文件或者jar包 |
好的,谢谢,我试试看! |
@djx1986sky @oubowu oubowu 正解 |
|
新增方法可以 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/**
*/
public class PatchManipulateImp extends PatchManipulate {
@OverRide
protected List fetchPatchList(Context context) {
//将app自己的robustApkHash上报给服务端,服务端根据robustApkHash来区分每一次apk build来给app下发补丁
//String robustApkHash = RobustApkHashUtils.readRobustApkHash(context);
Patch patch = new Patch();
patch.setName("123");
patch.setLocalPath(Environment.getExternalStorageDirectory().getPath()+ File.separator+"robust"+File.separator + "patch.dex");
patch.setTempPath(Environment.getExternalStorageDirectory().getPath()+ File.separator+"robust"+File.separator + "patch");
patch.setPatchesInfoImplClassFullName("com.meituan.robust.patch.PatchesInfoImpl");
List patches = new ArrayList();
patches.add(patch);
return patches;
}
上述中的patch.setPatchesInfoImplClassFullName中设置的是一个继承patcesInfo的类吗?我在sample和你们的文章中都没有看到此类(继承的话应该如何处理?),现在加载patch.jar时老是报exceptionNotifyDidn't find class "com.meituan.robust.patch.PatchesInfoImpl" on path: DexPathList[[],nativeLibraryDirectories=[/vendor/lib, /system/lib]] whereclass:PatchExecutor method:patch line:108
求解呀!
The text was updated successfully, but these errors were encountered: