AppLovin / AppLovin-MAX-Unity-Plugin

111 stars 31 forks source link

Constructor on type 'MaxSdkBase+MediatedNetworkInfo' not found #115

Closed sundxing closed 1 month ago

sundxing commented 2 years ago

Hi, i got a problem here, when i call MaxSdk.GetAvailableMediatedNetworks, got error: MissingMethodException: Constructor on type 'MaxSdkBase+MediatedNetworkInfo' not found. I suspect it has something to do with code optimization.

The code i use:

    MaxSdkCallbacks.OnSdkInitializedEvent += (MaxSdkBase.SdkConfiguration sdkConfiguration) =>
    {
        // AppLovin SDK is initialized, start loading ads
        var networks = MaxSdk.GetAvailableMediatedNetworks();
        ...
    };

Unity version : 2018.4.36 AppLovin Max plugin version : 4.3.12

ritamsarmah commented 2 years ago

Hi @sundxing, would you mind sharing the Android and iOS SDK versions you are using, as well as the mediated networks you have installed?

sundxing commented 2 years ago

Ok Screen Shot 2022-01-07 at 10 38 40 AM

Screen Shot 2022-01-07 at 10 38 16 AM

ritamsarmah commented 2 years ago

Thanks @sundxing, we're looking into it and will update on whether we can reproduce the issue

ritamsarmah commented 2 years ago

Hi @sundxing, we weren't able to reproduce the issue using the same Unity and plugin versions. Could you try upgrading to Unity Plugin 5.0.1 (as well as any outdated adapters)? The newer plugin includes stability improvements that may relate to this issue with GetAvailableMediatedNetworks