混淆配置里加入下面代码
-keepattributes Signature
-keep class sun.misc.Unsafe { *; }
-keep class com.google.gson.examples.android.model.** { *; }
本文介绍了一种在混淆配置中保持特定类和属性的方法。通过添加指定的代码,可以确保Sun Misc Unsafe类以及Google GSON Android Model类不受混淆影响。
-keepattributes Signature
-keep class sun.misc.Unsafe { *; }
-keep class com.google.gson.examples.android.model.** { *; }
814
3万+

被折叠的 条评论
为什么被折叠?