hello friends hope all are good, i have integrated applovin sdk as per instructions but when i run the project i got some error in console can anyone help me with this and ads are not showing in mobile thanks in advance
Exception: JNI: Init’d AndroidJavaClass with null ptr!
UnityEngine.AndroidJavaClass…ctor (IntPtr jclass) (at C:/buildslave/unity/build/Runtime/Export/AndroidJavaImpl.cs:556)
UnityEngine.AndroidJavaObject.get_JavaLangClass () (at C:/buildslave/unity/build/Runtime/Export/AndroidJavaImpl.cs:534)
UnityEngine.AndroidJavaObject.FindClass (System.String name) (at C:/buildslave/unity/build/Runtime/Export/AndroidJavaImpl.cs:525)
UnityEngine.AndroidJavaClass._AndroidJavaClass (System.String className) (at C:/buildslave/unity/build/Runtime/Export/AndroidJavaImpl.cs:545)
UnityEngine.AndroidJavaClass…ctor (System.String className) (at C:/buildslave/unity/build/artifacts/generated/common/runtime/AndroidJavaBindings.gen.cs:94)
AppLovin.getDefaultPlugin () (at Assets/Plugins/AppLovin/AppLovin.cs:87)
AppLovin.SetSdkKey (System.String sdkKey) (at Assets/Plugins/AppLovin/AppLovin.cs:453)
AdManager.Start () (at Assets/Scripts/AdManager.cs:8)
Looks like you have a C# script that attempts to invoke code in the underlying android (Java) library, but that library most probably doesn’t exist.
Did you include the native (.jar or .aar) libraries for Applovin?
``
#if UNITY_EDITOR
// Do not process with unityEditor
#elif UNITY_ANDROID
// AppLovin
AppLovin.SetSdkKey(Constant.SDK_APPLOVIN_API_KEY);
AppLovin.InitializeSdk();
#elif UNITY_IOS
#endif
I initialized with android only, and if I did not process it with unityEditor, I got no more errors.