From 5a78913407f64c565a411244c3846020431e89b1 Mon Sep 17 00:00:00 2001 From: Li ZongYing Date: Sun, 26 May 2024 20:49:01 +0800 Subject: [PATCH] fix gson crash --- app/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index e98bf39a..14ccedbb 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -116,7 +116,9 @@ dependencies { implementation 'com.google.protobuf:protobuf-kotlin:3.25.1' // Gson 2.10.1 and older: API level 19 implementation("com.google.code.gson:gson:2.10.1") - implementation "com.squareup.retrofit2:converter-gson:$retrofit2_version" + implementation("com.squareup.retrofit2:converter-gson:$retrofit2_version") { + exclude group: 'com.google.code.gson', module: 'gson' + } implementation "com.squareup.retrofit2:converter-protobuf:$retrofit2_version" implementation "com.squareup.retrofit2:retrofit:$retrofit2_version"