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

第一次,先对aar混淆,然后再加固。第二次不混淆,加固后,运行app报错。 #89

Closed
yijiepifu opened this issue Sep 23, 2023 · 6 comments

Comments

@yijiepifu
Copy link

CheckJNI: method to register "llllIl" not in the given class. This is slow, consider changing your RegisterNatives calls.
其中“llllIl”是混淆后的方法名,但是我第二次都没有混淆了,为什么还有这个错误提示呢?

@yijiepifu
Copy link
Author

看起来好像是有缓存

@yijiepifu
Copy link
Author

yijiepifu commented Sep 23, 2023

如图
image

@maoabc
Copy link
Owner

maoabc commented Sep 25, 2023

不清楚是不是dx过程中一些方法被内联了

@maoabc
Copy link
Owner

maoabc commented Sep 25, 2023

可以试着对比一下转换前的jar里面.class文件跟转换后的.dex里的class。如果缓存问题,可以先试着删除上一次生成的所有目录。

@maoabc
Copy link
Owner

maoabc commented Sep 25, 2023

windows下之前有遇到文件删除不了的情况,找不到原因,如果你是windows下操作可能得注意这种情况。

@yijiepifu
Copy link
Author

windows下之前有遇到文件删除不了的情况,找不到原因,如果你是windows下操作可能得注意这种情况。

貌似是android studio缓存的问题,我是打包aar,先“clean”,然后“assembleRelease”就好了,如果有人遇到可以这样试试,我已经解决了,最后感谢作者的回复

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

2 participants