Game Crashes after a few seconds of Starting Up due to Applovin SDK

It happens in Unity: 2021.3.37f1, 2021.3.38…
Mediation: 8.0.0.

Process: PID: 16259
java.lang.Error: FATAL EXCEPTION [main]
Unity version : 2021.3.38f1
Device model : Xiaomi 23076RN8DY
Device fingerprint: Redmi/river_eea/river:14/UKQ1.230917.001/V816.0.5.0.UMWEUXM:user/release-keys
Build Type : Development
Scripting Backend : IL2CPP
ABI : arm64-v8a
Strip Engine Code : true
Caused by: java.lang.NoSuchMethodError: No static method builder(Ljava/lang/String;Landroid/content/Context;)Lcom/applovin/sdk/AppLovinSdkInitializationConfiguration$Builder; in class Lcom/applovin/sdk/AppLovinSdkInitializationConfiguration; or its super classes (declaration of ‘com.applovin.sdk.AppLovinSdkInitializationConfiguration’ appears in /data/app/~~o5GPLGp04l0gOICnnsD8_g==/com.salomointeriors.wordsearch-50Qz2lrIJm63fvWSoWAGTQ==/base.apk)
at com.ironsource.adapters.applovin.AppLovinAdapter.initSdk(AppLovinAdapter.java:174)
at com.ironsource.adapters.applovin.AppLovinAdapter.lambda$initInterstitial$3$com-ironsource-adapters-applovin-AppLovinAdapter(AppLovinAdapter.java:406)
at com.ironsource.adapters.applovin.AppLovinAdapter$$ExternalSyntheticLambda3.run(Unknown Source:6)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:224)
at android.os.Looper.loop(Looper.java:318)
at android.app.ActivityThread.main(ActivityThread.java:8762)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)

=============================================
LIVE BUG:

Stack trace
help_outline

1

Sample attributes:

Game engine build fingerprint:

  • 2021.3.37f1;IL2CPP;Release;StripEngineCode:0;OptimizedFramePacing:0;
    help_outline

Type
java.lang.Error
Exception java.lang.Error: FATAL EXCEPTION [main]
Unity version : 2021.3.37f1
Device model : samsung SM-A042F
Device fingerprint: samsung/a04exx/a04e:13/TP1A.220624.014/A042FXXU3CWH2:user/release-keys
Build Type : Release
Scripting Backend : IL2CPP
ABI : arm64-v8a
Strip Engine Code : true

Caused by: java.lang.NoSuchMethodError: No static method builder(Ljava/lang/String;Landroid/content/Context;)Lcom/applovin/sdk/AppLovinSdkInitializationConfiguration$Builder; in class Lcom/applovin/sdk/AppLovinSdkInitializationConfiguration; or its super classes (declaration of ‘com.applovin.sdk.AppLovinSdkInitializationConfiguration’ appears in base.apk)
at com.ironsource.adapters.applovin.AppLovinAdapter.initSdk (AppLovinAdapter.java:174)
at com.ironsource.adapters.applovin.AppLovinAdapter.lambda$initBanners$4$com-ironsource-adapters-applovin-AppLovinAdapter (AppLovinAdapter.java:490)
at com.ironsource.adapters.applovin.AppLovinAdapter$$ExternalSyntheticLambda6.run
at android.os.Handler.handleCallback (Handler.java:942)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loopOnce (Looper.java:226)
at android.os.Looper.loop (Looper.java:313)
at android.app.ActivityThread.main (ActivityThread.java:8757)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1067)

=============================================
What I did for now is remove Applovin SDK.

We are also seeing the same crash after a few seconds on Android.

Unity 2022.3.26f
Mediation 8.0.0
IronSource SDK 8.1.0
AppLovin Adapter 4.3.49 and 4.3.49.1

statsUid=-1 --------- beginning of crash
2024-05-28 10:17:15.440 16937-16937/ E/AndroidRuntime: FATAL EXCEPTION: main
Process: , PID: 16937
java.lang.NoSuchMethodError: No static method builder(Ljava/lang/String;Landroid/content/Context;)Lcom/applovin/sdk/AppLovinSdkInitializationConfiguration$Builder; in class Lcom/applovin/sdk/AppLovinSdkInitializationConfiguration; or its super classes (declaration of ‘com.applovin.sdk.AppLovinSdkInitializationConfiguration’ appears in /data/app/~~DCm7jSGA5cciPykJFIte4w==/-LilNi613PJOwMOAvj6I58g==/base.apk)
at com.ironsource.adapters.applovin.AppLovinAdapter.initSdk(AppLovinAdapter.java:174)
at com.ironsource.adapters.applovin.AppLovinAdapter.lambda$initAndLoadRewardedVideo$2$com-ironsource-adapters-applovin-AppLovinAdapter(AppLovinAdapter.java:309)
at com.ironsource.adapters.applovin.AppLovinAdapter$$ExternalSyntheticLambda4.run(Unknown Source:6)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:240)
at android.os.Looper.loop(Looper.java:351)
at android.app.ActivityThread.main(ActivityThread.java:8377)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)

No solution found yet

@warfronts Is this still happening for you? We updated to the latest SDKs and AppLovin adapter and the crash is still happening on our side

Hey James, Since the crash i removed the Applovin from my network bidding. I can’t take this risk. If it is still happening then it is not solved.

I had the same issue and wasn’t able to make it work with the current AppLovin version. But I was able to solve the crash and keep AppLovin by downgrading the ironSource adapter.
Just change the 2 android dependencies in the ISAppLovinAdapterDependencies.xml file to com.ironsource.adapters:applovinadapter:4.3.42 and com.applovin:applovin-sdk:12.3.1
I’m pretty sure ironSource hasn’t made the adjustments that came with AppLovin sdk version 12.4: New SDK Initialization API | Android / Amazon | Support Center | AppLovin

Any news? Just reported to IS

We see those crashes as well and had to downgrade AppLovin SDK and Adapeter to the previous version available with IS to solve the issue.

I found that setting minSdkVersion 24 or higher resolved this issue.

2 Likes

Any news?

Was having the same issue with min sdk set to 23, I can confirm that setting it to 24 fixes it.

2 Likes

I have the same crashes
any news?

Aby updates on that? Just updated SDK and same error pops up.

Unity Mediation has been deprecated. For more information, see: Important update about Unity Mediation