braze-android-sdk
braze-android-sdk copied to clipboard
[Bug]: Crash - NoSuchFieldError - No static field Key of type CoroutineExceptionHandler
Braze Android SDK Version
30.0.0
Steps To Reproduce
Couldn't reproduce
Expected Behavior
Not crashing the app
Actual Incorrect Behavior
Crashing the app
Verbose Logs
Fatal Exception: java.lang.NoSuchFieldError: No static field Key of type Lkotlinx/coroutines/CoroutineExceptionHandler$Key; in class Lkotlinx/coroutines/CoroutineExceptionHandler; or its superclasses (declaration of 'kotlinx.coroutines.CoroutineExceptionHandler' appears in base.apk)
at com.braze.coroutine.BrazeCoroutineScope.<clinit>(SourceFile:1)
at com.braze.images.DefaultBrazeImageLoader.initDiskCacheTask(SourceFile:1)
at com.braze.images.DefaultBrazeImageLoader.<init>(SourceFile:9)
at com.braze.Braze.<init>(SourceFile:49)
at com.braze.Braze$Companion.getInstance(SourceFile:4)
at fr.vestiairecollective.BaseApplication.initBraze(BaseApplication.kt:385)
at fr.vestiairecollective.BaseApplication.onCreate(BaseApplication.kt:105)
at fr.vestiairecollective.app.VestiaireApplication.onCreate(VestiaireApplication.kt:27)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1154)
at androidx.test.runner.MonitoringInstrumentation.callApplicationOnCreate(MonitoringInstrumentation.java:2)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5871)
at android.app.ActivityThread.access$1100(ActivityThread.java:199)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1650)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6669)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
Additional Information
Since we have upgrade the SDK to the latest version 30.0.0 we are noticing some crash only for Rooted, Unknown device - GCE X86 Phone, Android 9