Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Bug Caused by java.lang.NoSuchMethodError: No virtual method load(Lcom/unity3d/ads/UnityAdsLoadOptions;)

Discussion in 'Android' started by Shefich, May 25, 2024.

  1. Shefich

    Shefich

    Joined:
    May 23, 2013
    Posts:
    149
    I'm facing such crash after updating Unity Ads Unity Mediation Plugin.
    Stacktrace:
    Code (CSharp):
    1. Caused by java.lang.NoSuchMethodError: No virtual method load(Lcom/unity3d/ads/UnityAdsLoadOptions;)V in class Lcom/unity3d/services/banners/BannerView; or its super classes (declaration of 'com.unity3d.services.banners.BannerView' appears in base.apk!classes4.dex)
    2.        at com.google.ads.mediation.unity.UnityBannerViewWrapper.load(UnityBannerViewWrapper.java:24)
    3.        at com.google.ads.mediation.unity.UnityMediationBannerAd$1.onInitializationComplete(UnityMediationBannerAd.java:232)
    4.        at com.unity3d.services.core.properties.SdkProperties.notifyInitializationComplete(SdkProperties.java:65)
    5.        at com.unity3d.services.core.configuration.CoreModuleConfiguration$2.run(CoreModuleConfiguration.java:95)
    6.        at android.os.Handler.handleCallback(Handler.java:938)
    7.        at android.os.Handler.dispatchMessage(Handler.java:99)
    8.        at android.os.Looper.loopOnce(Looper.java:210)
    9.        at android.os.Looper.loop(Looper.java:299)
    10.        at android.app.ActivityThread.main(ActivityThread.java:8168)
    11.        at java.lang.reflect.Method.invoke(Method.java)
    12.        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
    13.        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1037)
    I am using Unity 2022.3.30
    Google Mobile Ads Unity Plugin 9.1.0
    Unity Ads Unity Mediation Plugin 3.11.0

    Unity Ads Legacy 4.4.2

    Also Managed Stripping Level set to Minimal.

    Full stacktrace attached.
     

    Attached Files: