Meituan-Dianping / Meituan-Dianping/Robust

PatchsInfoImpl failed,cause ofjava.lang.ClassNotFoundException

Open
#257 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
4.5k
Forks
806
PR merge metrics
No merged PRs in 30d

Description

异常类型:PatchesInfoImpl类找不到导致加载失败

手机型号:vivo XPlus9

手机系统版本:如:Android 7.0

Robust版本:0.4.78

Gradle版本:如:4.1

系统:windows

堆栈/日志:

03-30 17:12:30.451 19745-19909/? D/robust: patchManipulate list size is 1
03-30 17:12:30.452 19745-19909/? D/robust: PatchsInfoImpl name:com.meituan.robust.patch.PatchesInfoImpl
03-30 17:12:30.453 19745-19909/? E/robust: PatchsInfoImpl failed,cause ofjava.lang.ClassNotFoundException: Didn't find class "com.meituan.robust.patch.PatchesInfoImpl" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib64, /vendor/lib64]]
03-30 17:12:30.453 19745-19909/? W/System.err: java.lang.ClassNotFoundException: Didn't find class "com.meituan.robust.patch.PatchesInfoImpl" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib64, /vendor/lib64]]
03-30 17:12:30.453 19745-19909/? W/System.err: at com.meituan.robust.PatchExecutor.patch(Unknown Source)
03-30 17:12:30.453 19745-19909/? W/System.err: at com.meituan.robust.PatchExecutor.applyPatchList(Unknown Source)
03-30 17:12:30.453 19745-19909/? W/System.err: at com.meituan.robust.PatchExecutor.run(Unknown Source)
03-30 17:12:30.453 19745-19909/? D/robust: patch LocalPath:/storage/emulated/0/robust/patch.jar,apply result false

确定patch.jar中有PatchesInfoImpl类,而且全路径也是对的,为什么会加载失败?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the PatchExecutor.patch, applyPatchList, and run stack frames in the log, then inspect patch.jar to verify the PatchesInfoImpl entry and its runtime packaging. Reproduce the failure on the reported Android setup and document a confirmed cause or the missing configuration needed for the class to load.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.