android代码混淆后gson无法解析问题
16lz
2021-01-23
proguard-project.txt里添加以下代码
-proguard-project.txt##---------------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 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 混编源代码
- Android中倒计时代码
- android mediaplayer 音效 代码
- android小游戏代码
- Android WebView文件上传(关键代码)
- android,java代码设置背景色
- 移动应用开发:如何创建自定义Android代码模板
- Android 用代码动态添加View(ViewGroup.addView()),并进行动态添加