Unleash / unleash-android-proxy-sdk

https://docs.getunleash.io/unleash-android-proxy-sdk
Apache License 2.0
7 stars 16 forks source link

crash on android 5 and 6 #79

Closed ehsan323 closed 1 month ago

ehsan323 commented 2 months ago

Describe the bug

After releasing new version of app by unleash, I saw many crashes on androids of 5 and 6

Steps to reproduce the bug

No response

Expected behavior

No response

Logs, error output, etc.

java.lang.NoClassDefFoundError: v7.b
    at io.getunleash.metrics.HttpMetricsReporter.log(SourceFile:3)
    at io.getunleash.UnleashClient.isEnabled(SourceFile:2)
    at io.getunleash.UnleashClientSpec$DefaultImpls.isEnabled$default(SourceFile)
    at com.emofid.rnmofid.presentation.ui.splash.SplashScreenActivity$onCreate$1$1.invokeSuspend(SourceFile:4)
    at l9.a.resumeWith(SourceFile:3)
    at kotlinx.coroutines.DispatchedTaskKt.resume(SourceFile:10)
    at kotlinx.coroutines.DispatchedTaskKt.dispatch(SourceFile:8)
    at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(SourceFile:2)
    at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl(SourceFile:5)
    at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$default(SourceFile)
    at kotlinx.coroutines.CancellableContinuationImpl.resumeUndispatched(SourceFile:2)
    at kotlinx.coroutines.android.HandlerContext$scheduleResumeAfterDelay$$inlined$Runnable$1.run(SourceFile)
    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:6934)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
    Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException

Screenshots

No response

Additional context

No response

Unleash version

1.0.0

Subscription type

None

Hosting type

Self-hosted

SDK information (language and version)

No response

chriswk commented 1 month ago

The plan is to release a new Android SDK sometime in July. Taking the lessons learned from this version and having an SDK that knows it's an Android library. It should simplify testing for us as well. If you're interested in following our progress, the new repo is at https://github.com/Unleash/UnleashAndroidSdk

gastonfournier commented 1 month ago

There's a new SDK released, please let us know if that solves this issue or else please open a new one with the details in the new repository: https://github.com/Unleash/unleash-android

Here's a migration guide to help with the migration https://github.com/Unleash/unleash-android/blob/main/docs/MigrationGuide.md