Android 更新其他库时GSON解析崩溃
我正在应用程序中使用GSON保存一些对象。这是导入:Android 更新其他库时GSON解析崩溃,android,android-studio,gson,Android,Android Studio,Gson,我正在应用程序中使用GSON保存一些对象。这是导入:compile'com.google.code.gson:gson:2.8.3' 现在我正在开发新的应用程序版本,并更新了其他一些库,如Firebase和play服务: compile 'com.google.firebase:firebase-core:17.5.0 compile 'com.google.firebase:firebase-config:19.2.0' implementation 'androidx.appcompat:a
compile'com.google.code.gson:gson:2.8.3'
现在我正在开发新的应用程序版本,并更新了其他一些库,如Firebase和play服务:
compile 'com.google.firebase:firebase-core:17.5.0
compile 'com.google.firebase:firebase-config:19.2.0'
implementation 'androidx.appcompat:appcompat:1.0.0'
compile 'com.google.android.gms:play-services-base:16.+'
compile 'com.google.android.gms:play-services-ads-identifier:16.+'
compile 'com.google.android.gms:play-services-basement:16.+''
该应用程序工作正常,但当运行旧版本并更新到新版本时,我突然在GSON解析中崩溃:
Caused by: d.e.a.t: java.lang.IllegalStateException: Expected an int but was BEGIN_ARRAY at line 1 column 122 path $.a[0].i
我确保旧版本和新版本使用相同的GSON版本:
compile('com.google.code.gson:gson:2.8.3') {
version {
strictly '2.8.3'
}
}
但还是有些东西不起作用。
我应该提到的是,我使用proguard与GSON相关的部分
有线索吗