-
Notifications
You must be signed in to change notification settings - Fork 279
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 警告:Type java.util.HashMap
was not found 这个是否是正常的
#81
Comments
这是d8的报错,d8命令时没有指定android.jar, 不过一般情况没什么问题。如果有错,就得加上--lib xx.jar指定一些lib。d8调用在classesJarToDexJar方法里( nmmp/nmm-protect/apkprotect/src/main/java/com/nmmedit/apkprotect/aar/AarProtect.java Line 246 in 8de0d73
|
如果使用了java8的语法糖,一般还需要再指定android.jar |
好的 感谢解惑 |
AAR 加固遇到这种kotlin语法就会崩溃 [ object : ],正在研究问题原因,怀疑导dex2jar或者是R8导致的 val callback = object : PermissionUtils.SimpleCallback {
override fun onGranted() {
}
override fun onDenied() {
}
} |
这个看着只是新建一个回调对象,应该不是这句代码产生的。后面回调接口实现会生成匿名内部类,如果它有default方法可能会有问题。 |
基本所有android的类库都会报警告:
使用命令:
The text was updated successfully, but these errors were encountered: