You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Chucker version 4.0.0 but when I hit an API and open the Chucker app to see the log and open API details it crashes with the following record:
FATAL EXCEPTION: main
Process: ats.ksa.kfsh.patient, PID: 15324
java.lang.NoSuchMethodError: No static method parseString(Ljava/lang/String;)Lcom/google/gson/JsonElement; in class Lcom/google/gson/JsonParser; or its super classes (declaration of 'com.google.gson.JsonParser' appears in /data/app/~~ta4fm5TV3qpbkJoXnBbtIA==/ats.ksa.kfsh.patient-4Y8ztGKmPj16gBB0wcxC8Q==/base.apk!classes2.dex)
at com.chuckerteam.chucker.internal.support.FormatUtils.formatJson(FormatUtils.kt:57)
at com.chuckerteam.chucker.internal.support.SpanTextUtil.spanJson(SpanTextUtil.kt:83)
at com.chuckerteam.chucker.internal.data.entity.HttpTransaction.spanBody(HttpTransaction.kt:236)
at com.chuckerteam.chucker.internal.data.entity.HttpTransaction.getSpannedRequestBody(HttpTransaction.kt:251)
at com.chuckerteam.chucker.internal.ui.transaction.TransactionPayloadFragment$processPayload$2.invokeSuspend(TransactionPayloadFragment.kt:340)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@f639a0a, Dispatchers.Main.immediate]
The text was updated successfully, but these errors were encountered:
I believe your problem is caused by a wrong version of GSON which you end up using (different than 2.10.1). This can be caused by a number of factors, like a resolution strategy set somewhere else in your build logic.
Without a reproducer, it's impossible to say what's going on.
I have the following gradle file for Java application
`
I'm using Chucker version 4.0.0 but when I hit an API and open the Chucker app to see the log and open API details it crashes with the following record:
The text was updated successfully, but these errors were encountered: