Hey folks, I'm seeing a weird crash while using co...
# coroutines
q
Hey folks, I'm seeing a weird crash while using coroutines, it's happening on Samsung devices running Android 5.0 only 🤔
Copy code
Caused by java.lang.NoSuchFieldException: _decision
       at java.lang.Class.getDeclaredField(Class.java:929)
       at java.util.concurrent.atomic.AtomicIntegerFieldUpdater$AtomicIntegerFieldUpdaterImpl.(AtomicIntegerFieldUpdater.java:251)
       at java.util.concurrent.atomic.AtomicIntegerFieldUpdater.newUpdater(AtomicIntegerFieldUpdater.java:49)
       at kotlinx.coroutines.AbstractContinuation.(SourceFile)
       at kotlinx.coroutines.JobSupport.awaitSuspend(SourceFile:1095)
       at kotlinx.coroutines.JobSupport.awaitInternal$kotlinx_coroutines_core(SourceFile:1086)
       at kotlinx.coroutines.DeferredCoroutine.await$suspendImpl(SourceFile:99)
       at kotlinx.coroutines.DeferredCoroutine.await(SourceFile)
       at com.busuu.android.business.AppboyUtils$forceRegistration$1.invokeSuspend(SourceFile:23)
       at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:32)
       at kotlinx.coroutines.DispatchedTask.run(SourceFile:236)
       at android.os.Handler.handleCallback(Handler.java:739)
       at android.os.Handler.dispatchMessage(Handler.java:95)
       at android.os.Looper.loop(Looper.java:145)
       at android.app.ActivityThread.main(ActivityThread.java:5938)
       at java.lang.reflect.Method.invoke(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:372)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
t
https://github.com/Kotlin/kotlinx.coroutines/issues/490 be ready to see quite a few more variations 😞
v
In case you don’t need to support all the devices out there and care more about crash rate:
Copy code
Google Play Console
Release Management > Device Catalog > Excluded Devices
t
Does not support Brand + Android version filter.