AppLovin / AppLovin-MAX-Unity-Plugin

127 stars 34 forks source link

Android exception on init after upgrade to 5.1.1 plugin version #132

Open lastdan opened 2 years ago

lastdan commented 2 years ago

A new kind of exception appeared in Crashlitycs console after upgrading plugin from version 4.3.12 to 5.1.1:

Non-fatal Exception: java.lang.Exception: AndroidJavaException : java.lang.NullPointerException: Attempt to invoke virtual method 'void com.applovin.impl.sdk.a.a(com.applovin.impl.sdk.utils.a)' on a null object reference at com.applovin.impl.sdk.a.a(com.applovin.impl.sdk.a) at com.applovin.impl.sdk.l.(com.applovin.impl.sdk.l) at com.applovin.impl.sdk.m.a(com.applovin.impl.sdk.m) at com.applovin.sdk.AppLovinSdk.a(com.applovin.sdk.AppLovinSdk) at com.applovin.sdk.AppLovinSdk.getInstance(com.applovin.sdk.AppLovinSdk) at com.applovin.mediation.unity.MaxUnityAdManager.initializeSdkWithCompletionHandler(com.applovin.mediation.unity.MaxUnityAdManager) at com.applovin.mediation.unity.MaxUnityPlugin.initializeSdk(com.applovin.mediation.unity.MaxUnityPlugin) at com.unity3d.player.UnityPlayer.nativeRender(com.unity3d.player.UnityPlayer) at com.unity3d.player.UnityPlayer.access$300(com.unity3d.player.UnityPlayer) at com.unity3d.player.UnityPlayer$e$1.handleMessage(com.unity3d.player.UnityPlayer$e$1) at android.os.Handler.dispatchMessage(android.os.Handler) at android.os.Looper.loop(android.os.Looper) at com.unity3d.player.UnityPlayer$e.run(com.unity3d.player.UnityPlayer$e) at UnityEngine.AndroidJNISafe.CheckException(UnityEngine.AndroidJNISafe) at UnityEngine.AndroidJavaObject._CallStatic(UnityEngine.AndroidJavaObject) at System.Action1[T].Invoke(System.Action1[T]) at System.Action1[T].Invoke(System.Action1[T])

Unity version 2020.3.8f1

chauduyphanvu commented 2 years ago

@lastdan, thanks for letting us know. Are you able to reproduce that exception in our Unity sample app? If so, let us know the steps. If not, could you share a project with which you could repro the issue?

Vu Chau AppLovin Team

lastdan commented 2 years ago

Can't say anything about repro, cause we don't catch this bug on our test devices