1
                            proguard配置:
-dontshrink
-dontobfuscate
-keepattributes SourceFile,LineNumberTable
-verbose
-optimizations code/removal/advanced
-optimizationpasses 1
-dontpreverify
-ignorewarnings
...gradle配置:
debug {
    minifyEnabled true
    debuggable true
    proguardFiles 'proguard-rules.pro'
    ...
}通过log得知,传递给fastjson的Type与String字段都正确,但是解析却失败,没有任何异常抛出。
调用方式: JSON.parseObject(json, type)
fastjson版本:
com.alibaba:fastjson:1.1.68.android 或 com.alibaba:fastjson:1.2.47
如果不使用proguard并让minifyEnabled=false,那么一切正常。