Recently doing Android obfuscation pack has encountered some problems with Android Sdutio 3.1 version packaged
The error is as follows:
Android Studio Warning-innerclass annotations is missing corresponding enclosingmember annotations
Innerclass annotations is missing corresponding enclosingmember annotations. Such innerclass annotations is ignored.
Message{kind=warning, text=innerclass annotations is missing corresponding enclosingmember annotations. Such innerclass annotations is ignored., Sources=[unknown source file], tool Name=optional.of (D8)}
Solution Solutions
Add the following code to the Build.gradle
Buildtypes {
Release {
lintoptions {
Checkreleasebuilds false
Abortonerror false
}
}
}
Packaging errors such as
See Figure 1
There must be warning in front of the compile time because of the error. Turned a bit, sure enough to find a lot of warning.
33 warning with a bag
com.yintong.secure Com.icbc.pay
Next, just add the dontwarn of this library to Proguard-rules.pro.
-dontwarn Com.yintong.secure.**-dontwarn com.icbc.pay.**
Then re-build->generate signed, you can generate app-release.apk.
Android--------Obfuscation package error (Warning-innerclass annotations is missing corresponding enclosingmember annotations)