AppLovin / AppLovin-MAX-Unity-Plugin

110 stars 31 forks source link

Fyber.FairBidAndroid.SDKVersion - Field SDK_VERSION or type signature not found #367

Closed ctykaya closed 3 weeks ago

ctykaya commented 3 weeks ago

MAX Plugin Version

6.4.3

Unity Version

2022.3.25f1

Device/Platform Info

Note, Galaxy Note10+,Vivo 1902,Galaxy A22,Galaxy A32,Realme C30,Tecno Spark 10C,CPH2325

Current Behavior

When initializing Dt Exchange SDK with AppLovin MAX throws error and crash the app. Here is the Crash report from Firebase Crashlytics

Fatal Exception: java.lang.Exception: Exception : Field SDK_VERSION or type signature  not found
       at UnityEngine._AndroidJNIHelper.GetFieldID(UnityEngine._AndroidJNIHelper)
       at UnityEngine.AndroidJavaObject._GetStatic[FieldType](UnityEngine.AndroidJavaObject)
       at Fyber.FairBidAndroid.SDKVersion(Fyber.FairBidAndroid)
       at Fyber.FairBid.CheckNativeSDKCompatibility(Fyber.FairBid)
       at Fyber.FairBid.ConfigureForAppId(Fyber.FairBid)
       at Fyber.FairBid.Start(Fyber.FairBid)
       at DTExchangeController.InitSDK(DTExchangeController)
       at UnityEngine.Events.UnityEvent`2[T0,T1].Invoke(UnityEngine.Events.UnityEvent`2[T0,T1])
       at GameEvent.Raise(GameEvent)
       at PlayerController.CreatePlayer(PlayerController)
       at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext)
       at System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner.Run(System.Runtime.CompilerServices.AsyncMethodBuilderCore+MoveNextRunner)
       at System.Threading.ThreadPoolWorkQueue.Dispatch(System.Threading.ThreadPoolWorkQueue)
       at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__7_1(System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c)
       at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext)
       at System.Threading.ThreadPoolWorkQueue.Dispatch(System.Threading.ThreadPoolWorkQueue)

Expected Behavior

Successfully init the sdk and not crash the app

How to Reproduce

Cannot reproduce it. I only can see the crash report from firebase

Additional Info

No response

santoshbagadi commented 3 weeks ago

Hi @ctykaya , from the stacktrace, it looks like you are calling the Fyber APIs outside the MAX SDK. Is there a specific reason for calling the Fyber APIs outside the MAX SDK?

ctykaya commented 3 weeks ago

No there is not a specific reason for calling that. Should i call the Fyber Api when using MAX SDK.

 FairBid.Start(myAccountId);

I call when the app started. Is is valid for mediation ?

santoshbagadi commented 3 weeks ago

If you are using our MAX mediation, you don't have to call other network APIs apart from the ones that require custom integration mentioned in the docs here: https://dash.applovin.com/documentation/mediation/unity/mediation-adapters