Search Unity

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

Question Getting lots of duplicate class errors in level play plugin build

Discussion in 'Unity Ads & User Acquisition' started by 5c4r3cr0w, Oct 7, 2023.

  1. 5c4r3cr0w

    5c4r3cr0w

    Joined:
    Mar 8, 2016
    Posts:
    35
    Hello all,

    I am new to monetization and deployment on mobile platforms. Right now I have set up unity level play as described here : https://developers.is.com/ironsource-mobile/unity/unity-plugin/#step-1

    But I ma getting these errors:


    > A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
    > Duplicate class com.ironsource.unity.androidbridge.AndroidBridge found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$1 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$2 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$3 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$4 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    Duplicate class com.ironsource.unity.androidbridge.AndroidBridge$5 found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    Duplicate class com.ironsource.unity.androidbridge.AndroidBridgeConstants found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    Duplicate class com.ironsource.unity.androidbridge.AndroidBridgeUtilities found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    Duplicate class com.ironsource.unity.androidbridge.LevelPlayInterstitialWrapper found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    Duplicate class com.ironsource.unity.androidbridge.LevelPlayRewardedVideoWrapper found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    Duplicate class com.ironsource.unity.androidbridge.UnityBannerListener found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    Duplicate class com.ironsource.unity.androidbridge.UnityImpressionDataListener found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    Duplicate class com.ironsource.unity.androidbridge.UnityInitializationListener found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    Duplicate class com.ironsource.unity.androidbridge.UnityInterstitialListener found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    Duplicate class com.ironsource.unity.androidbridge.UnityLevelPlayBannerListener found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    Duplicate class com.ironsource.unity.androidbridge.UnityLevelPlayInterstitialListener found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    Duplicate class com.ironsource.unity.androidbridge.UnityLevelPlayRewardedVideoListener found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    Duplicate class com.ironsource.unity.androidbridge.UnityLevelPlayRewardedVideoManualListener found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    Duplicate class com.ironsource.unity.androidbridge.UnityOfferwallListener found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    Duplicate class com.ironsource.unity.androidbridge.UnityRewardedVideoListener found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    Duplicate class com.ironsource.unity.androidbridge.UnityRewardedVideoManualListener found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)
    Duplicate class com.ironsource.unity.androidbridge.UnitySegmentListener found in modules IronSource-bridge (IronSource-bridge.jar) and android-bridge (android-bridge.jar)

    I tried looking for duplicate .aar files but there aren't any in my project.
    Any help regarding this is appriciated :)
     
  2. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    626
    Could you be able to reproduce this issue in a fresh project? If so, please provide the reproduction steps so we can check it.