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

更多相关文章

  1. Android(安卓)自定义Ratingbar
  2. Android多个MenuItem如何互斥
  3. 自动输入文本效果—AutoCompleteTextView
  4. Fragment中添加tabs
  5. Android布局中添加条横线
  6. android 图片下方添加文字水印
  7. android recycler添加分割线 点击事件等
  8. jxl实用技巧
  9. FragmentTabHost

随机推荐

  1. Android(安卓)工程编译 Unsupported majo
  2. android配置信息类-Configuration
  3. 一种动态水平ProgressBar的实现
  4. Android知识点及资料汇总(不断更新中)
  5. 解决eclipse ADT编译NDK报NDK和minSdkVer
  6. android下使用Fragment实现左侧3级菜单+
  7. android的系统存储与软件安装
  8. 重复导入联系人
  9. Android make sdk出错问题的解决
  10. 关于Android软件破解的经验总结