配置gson混淆(复制下面这段到混淆文件):##---------------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# For using GSON @Expose annotation-keepattributes *Annotation*# 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.xxx.entity.** { *; }##---------------End: proguard configuration for Gson  ----------

注意:上面倒数第二行是防止你的实体类被混淆, com.xxx.entity. 是你实体类的包路径

更多相关文章

  1. android 根据Uri获取文件绝对路径
  2. android: content URI的真实路径获取
  3. Android将Uri转化为文件路径的方法
  4. 安卓各文件存储路径汇总(Android file path)
  5. Android Bluetooth 文件接收路径修改方法
  6. android获取各种系统路径的方法
  7. 关于android中的各种路径对应的方法
  8. Delphi处理Android的路径信息
  9. Android根据文件路径加载指定文件

随机推荐

  1. android各个版本的名称和更新(转)
  2. Android简单文件浏览器源代码
  3. Android webView与js 交互以及jsbridge框
  4. Android高德地图使用
  5. Android 日期时间选择控件
  6. 安卓自定义View(第一篇)
  7. android自动更新升级APP
  8. Android中的Dialog用法讲解大全
  9. Android 定制万能Adapter
  10. android 获取设备真实ip地址