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  ----------


更多相关文章

  1. android 混编源代码
  2. Android中倒计时代码
  3. android mediaplayer 音效 代码
  4. android小游戏代码
  5. Android WebView文件上传(关键代码)
  6. android,java代码设置背景色
  7. 移动应用开发:如何创建自定义Android代码模板
  8. Android 用代码动态添加View(ViewGroup.addView()),并进行动态添加

随机推荐

  1. JavaScript 执行线程图解
  2. 在 Vue.js 中使用嵌套路由
  3. 5 分钟搭建 Node.js 微服务原型
  4. 用函数式编程在 JS 中开发游戏
  5. 3 个 React 状态管理的规则
  6. 你应该知道的7 个 JavaScript 原生错误类
  7. 如何取消 JavaScript 中的异步任务
  8. 认识函数的类型、参数与返回值
  9. vivado IP核工程移植
  10. 二叉排序树