Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Adding ad networks in Ironsource causes build errors

Discussion in 'Unity Mediation' started by yuriythebest, Oct 29, 2023.

  1. yuriythebest

    yuriythebest

    Joined:
    Nov 21, 2009
    Posts:
    1,121
    Hello! I'm using Unity 2023.1.9 and, in an empty test project I add IronSource_IntegrationManager_v7.5.1.unitypackage
    - If in the integration manager I just add unityads+chartboost, resolve dependencies, everything seems fine and I get test ads,
    however ThisWors.jpg


    however if I add more add network, resolve mobile dependencies,buid I get these errors when testing


    errors.jpg

    ERRORS as text:
    :

    Code (CSharp):
    1. 2023-10-29 14:37:49.378 19857-19909/? I/zygote64: Rejecting re-init on previously-failed class java.lang.Class<com.ironsource.unity.androidbridge.AndroidBridge>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/ironsource/mediationsdk/sdk/InitializationListener;
    2. 2023-10-29 14:37:49.378 19857-19909/? I/zygote64: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.ironsource.mediationsdk.sdk.InitializationListener" on path: DexPathList[[zip file "/data/app/com.bgs.stickman.airplane-R7To_a-O6jPC4_u2n7txHQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.bgs.stickman.airplane-R7To_a-O6jPC4_u2n7txHQ==/lib/arm64, /data/app/com.bgs.stickman.airplane-R7To_a-O6jPC4_u2n7txHQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]
    3. 2023-10-29 14:37:49.385 19857-19909/? E/Unity: AndroidJavaException: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/ironsource/mediationsdk/sdk/InitializationListener;
    4.    java.lang.NoClassDefFoundError: Failed resolution of: Lcom/ironsource/mediationsdk/sdk/InitializationListener;
    5.        at com.unity3d.player.UnityPlayerForActivityOrService.nativeRender(Native Method)
    6.        at com.unity3d.player.L.handleMessage(Unknown Source:140)
    7.        at android.os.Handler.dispatchMessage(Handler.java:101)
    8.        at android.os.Looper.loop(Looper.java:164)
    9.        at com.unity3d.player.O.run(Unknown Source:24)
    10.     Caused by: java.lang.ClassNotFoundException: Didn't find class "com.ironsource.mediationsdk.sdk.InitializationListener" on path: DexPathList[[zip file "/data/app/com.bgs.stickman.airplane-R7To_a-O6jPC4_u2n7txHQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.bgs.stickman.airplane-R7To_a-O6jPC4_u2n7txHQ==/lib/arm64, /data/app/com.bgs.stickman.airplane-R7To_a-O6jPC4_u2n7txHQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]
    11.             at dalvik.system.BaseDexClassLoader.findC
    12.  


    I tried deleting the resolved libraries, re-resolving, but same thing...
    any ideas?
     
  2. VirginieC

    VirginieC

    Unity Technologies

    Joined:
    Aug 1, 2019
    Posts:
    17
    Hey yuriythebest,
    You are in the wrong forum, this one is dedicated to the Unity mediation package (soon deprecated, see this post). You would be better to ask this question the LevelPlay forum. Good luck!