Production Build Crash on Android 9

SDK Version: 33
Platform: Android
Android Version: 9

Hi!

I have released Android and ios app. The android app is getting crashes only on Android 9. Google Play crash report:

java.lang.RuntimeException:
at android.app.ActivityThread.performResumeActivity (ActivityThread.java:3993)
at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:4025)
at android.app.servertransaction.ResumeActivityItem.execute (ResumeActivityItem.java:51)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:145)
at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:70)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1926)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:214)
at android.app.ActivityThread.main (ActivityThread.java:6986)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1445)
Caused by: java.lang.IllegalStateException:
at android.app.ContextImpl.startServiceCommon (ContextImpl.java:1666)
at android.app.ContextImpl.startService (ContextImpl.java:1611)
at android.content.ContextWrapper.startService (ContextWrapper.java:677)
at host.exp.exponent.experience.a.i (BaseExperienceActivity.java:258)
at host.exp.exponent.experience.ExperienceActivity.onResume (ExperienceActivity.java:256)
at android.app.Instrumentation.callActivityOnResume (Instrumentation.java:1412)
at android.app.Activity.performResume (Activity.java:7557)
at android.app.ActivityThread.performResumeActivity (ActivityThread.java:3985)

Similar Unresolved issue:

That would be great if someone finds a solution.

Thanks in advance!

Hi. This might be relevant:

Found here:

Looks like there’s a fix for this in SDK 35 and later:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.