AppLovin / AppLovin-MAX-Cordova

MIT License
10 stars 12 forks source link

java.lang.IllegalStateException com.safedk.android.SafeDK.<init> #15

Closed Carlosps closed 2 years ago

Carlosps commented 2 years ago

After updating my apps to start using applovin, the crashes on Android Vitals skyrocketed.

java.lang.RuntimeException: at android.app.ActivityThread.installProvider (ActivityThread.java:7475) at android.app.ActivityThread.installContentProviders (ActivityThread.java:7011) at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6906) at android.app.ActivityThread.access$1400 (ActivityThread.java:244) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1931) at android.os.Handler.dispatchMessage (Handler.java:106) at android.os.Looper.loop (Looper.java:223) at android.app.ActivityThread.main (ActivityThread.java:7888) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:981) Caused by: java.lang.IllegalStateException: at android.app.ContextImpl.getSharedPreferences (ContextImpl.java:504) at android.app.ContextImpl.getSharedPreferences (ContextImpl.java:489) at android.content.ContextWrapper.getSharedPreferences (ContextWrapper.java:188) at com.safedk.android.SafeDK. (SourceFile:118) at com.safedk.android.SafeDK.a (SourceFile:264) at com.safedk.android.internal.DexBridge.providerOnCreateBefore (SourceFile:52) at com.google.firebase.provider.FirebaseInitProvider.onCreate (Unknown Source:5) at android.content.ContentProvider.attachInfo (ContentProvider.java:2391) at android.content.ContentProvider.attachInfo (ContentProvider.java:2361) at com.google.firebase.provider.FirebaseInitProvider.attachInfo (FirebaseInitProvider.java:45) at android.app.ActivityThread.installProvider (ActivityThread.java:7470)

Any idea what might be causing this issue?

thomasmso commented 2 years ago

Thanks for reporting the issue @Carlosps - we'll investigate and get back to you.

Carlosps commented 2 years ago

@thomasmso Any updates on that?

Thank you.

thomasmso commented 2 years ago

Hey @Carlosps - we're looking into it, we had other higher priority items come up. Sorry for the delay.

thomasmso commented 2 years ago

@Carlosps - Can you provide the Ad Review version? You can check in our logs or via the Mediation Debugger.

Docs: https://dash.applovin.com/documentation/mediation/cordova/testing-networks/mediation-debugger#displaying-the-mediation-debugger

Carlosps commented 2 years ago

Sure.

I am also attaching an image of the MAX Mediation Debugger. Please let me know in case you need any other information.

mediation_debugger_screenshot

thomasmso commented 2 years ago

The issue looks to be related to this. However, this is the first time we've received a complaint for this crash. We will add it to our backlog in the meantime.

Carlosps commented 2 years ago

Please let me know when you take a look at this. I also have other apps to add MAX mediation, but as crash reports affect ranking on Google Play I want to make sure those crashs drop.

Carlosps commented 2 years ago

@thomasmso Thank you again for you help.

Is there any updates on that?

thomasmso commented 2 years ago

No updates as no one else has reported the crash - I'd recommend disabling Ad Review.

Carlosps commented 2 years ago

How can I do that?

thomasmso commented 2 years ago

Check out the ruby script mentioned here - there are instructions on the top of that file on how to un-install

Carlosps commented 2 years ago

But the issue is android related, does the ruby script is not only for iOS?

thomasmso commented 2 years ago

Please check our docs for Android - you just need to remove the Gradle lines

sozdatel31 commented 2 years ago

@Carlosps did you manage to solve the problem?

Carlosps commented 2 years ago

@sozdatel31 Yes, I was able to solve the issue by doing what @thomasmso mentioned.

sozdatel31 commented 2 years ago

@sozdatel31Да, я смог решить проблему, сделав то, что@thomasmso упомянул.

Thanks for the answer

sozdatel31 commented 2 years ago

@thomasmso I am another person who faced this problem.

orilentz commented 1 year ago

FYI - I think this issue should now be resolved in latest Ad Review version - 4.9.0