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

java.lang.NoClassDefFoundError: Failed resolution of: La/RouterMap__TheRouter #150

Closed
sunnyswag opened this issue Mar 13, 2024 · 3 comments
Labels
wontfix This will not be worked on

Comments

@sunnyswag
Copy link

sunnyswag commented Mar 13, 2024

image
在 classes.dex 下可以看到的,依旧报错没有找到
已经配置相关 multiDexKeepProguard multi-dex :
image
相关版本:
TheRouter:1.2.1
minSdk:26
JDK 版本 17
影响范围:@Autowired 无法使用,页面可以正常跳转
已尝试过 clean

@sunnyswag
Copy link
Author

最后没截全的报错信息:
Caused by: java.lang.ClassNotFoundException: Didn't find class "a.RouterMap__TheRouter__1954367914" on path: DexPathList[[zip file "/data/app/xxx.xxx.xxx-D9wXOKhcn6MiiiF85n4tZg==/base.apk"],nativeLibraryDirectories=[/data/app/xxx.xxx.xxx-D9wXOKhcn6MiiiF85n4tZg==/lib/arm, /data/app/xxx.xxx.xxx-D9wXOKhcn6MiiiF85n4tZg==/base.apk!/lib/armeabi-v7a, /system/lib, /product/lib]]

@kymjs
Copy link
Collaborator

kymjs commented Mar 14, 2024

multidex分包问题,把TheRouter相关代码放到主dex试试

@kymjs kymjs added the wontfix This will not be worked on label Mar 14, 2024
@sunnyswag
Copy link
Author

a.RouterMap__TheRouter__1954367914 放在 classes.dex(这个是在主 dex 对吗),感觉这里还是有 bug,之后有空再研究一下

@kymjs kymjs closed this as completed Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants