android 混淆代码gson数据nullpointerexception
16lz
2021-01-26
在proguard中添加
##---------------Begin: proguard configuration for Gson ----------# Gson uses generic type information stored in a class file when working with fields. Proguard
# removes such information by default, so configure it to keep all of it.
-keepattributes Signature
# Gson specific classes
-keep class sun.misc.Unsafe { *; }
#-keep class com.google.gson.stream.** { *; }
# Application classes that will be serialized/deserialized over Gson
-keep class com.google.gson.examples.android.model.** { *; }
##---------------End: proguard configuration for Gson ----------
更多相关文章
- Android(安卓)自定义Ratingbar
- Android多个MenuItem如何互斥
- 自动输入文本效果—AutoCompleteTextView
- Fragment中添加tabs
- Android布局中添加条横线
- android 图片下方添加文字水印
- android recycler添加分割线 点击事件等
- jxl实用技巧
- FragmentTabHost