AppsFlyerSDK / appsflyer-android-sdk

AppsFlyer Android SDK
Other
9 stars 2 forks source link

java.lang.IllegalStateException at getSharedPreferences for more devices #34

Closed kwondongwoo closed 1 year ago

kwondongwoo commented 2 years ago

com.android.tools.build:gradle:7.1.2 org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10

Sdk version: com.appsflyer:af-android-sdk:6.5.1 defaultConfig.targetSdkVersion 30 defaultConfig.vectorDrawables.useSupportLibrary = true defaultConfig.multiDexEnabled true

Recently we noticed many crashes on devices:

java.lang.RuntimeException: 
  at android.app.ActivityThread.handleMakeApplication (ActivityThread.java:7506)
  at android.app.ActivityThread.handleBindApplication (ActivityThread.java:7440)
  at android.app.ActivityThread.access$1500 (ActivityThread.java:301)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2148)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:246)
  at android.app.ActivityThread.main (ActivityThread.java:8506)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:602)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1130)
Caused by: java.lang.IllegalStateException: 
  at android.app.ContextImpl.getSharedPreferences (ContextImpl.java:530)
  at android.app.ContextImpl.getSharedPreferences (ContextImpl.java:506)
  at android.content.ContextWrapper.getSharedPreferences (ContextWrapper.java:198)
  at com.appsflyer.internal.ah.AFKeystoreWrapper (:2782)
  at com.appsflyer.internal.aw.<init> (:30)
  at com.appsflyer.internal.ah.init (:38901)
  at net.teuida.teuida.TeuidaApplication.onCreate (TeuidaApplication.kt:48)
  at android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1192)
  at android.app.ActivityThread.handleMakeApplication (ActivityThread.java:7501)
  at android.app.ActivityThread.handleBindApplication (ActivityThread.java:7440)
  at android.app.ActivityThread.access$1500 (ActivityThread.java:301)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2148)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:246)
  at android.app.ActivityThread.main (ActivityThread.java:8506)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:602)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1130)

There has been an error and has been fired since the appk posted yesterday.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.