4. After talking about it for so long, I finally began to talk about the solution:
In fact, the referenced class cannot be found in a third-party package. In many cases, we only need to disrupt our own code. If the code of a third-party package needs to be disrupted, don't worry about it. Hee hee, this is called "only sweep the snow in front of your own door, render others on the cream ",
We can use
-Dontwarn com. XX. BBB .**
-Keep class com. XX. BBB .**{*;}
Parameter to keep the classes in the third-party library intact.-dontwarn and-keep are used in combination, meaningKeep COM. XX. bbb. ** all the classes in this package are not confused with all the methods, and then it is also called proguard. Do not warn that com. XX. bbb. ** references related to the class in this package.
After configuration, package again. Everything is OK! And the program runs correctly.
Example:
-Dontwarn net. youmi. Android .**
-Keep class net. youmi. Android .**{*;}