Errors while building for Android!

I recently added Unity Ads Mediation to my project. Now if I try to build my project for Android, 3 Errors pop up in the console.

The full logs are below.
Any help would be greatly appreciated!

Error-1:

Starting a Gradle Daemon, 1 incompatible and 6 stopped Daemons could not be reused, use --status for details

> Configure project :launcher
WARNING:Using flatDir should be avoided because it doesn't support any meta-data formats.

> Configure project :unityLibrary
WARNING:Using flatDir should be avoided because it doesn't support any meta-data formats.

> Configure project :unityLibrary:IronSource.androidlib
WARNING:Using flatDir should be avoided because it doesn't support any meta-data formats.

> Configure project :unityLibrary:mobilenotifications.androidlib
WARNING:Using flatDir should be avoided because it doesn't support any meta-data formats.
WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 34

This Android Gradle plugin (7.1.2) was tested up to compileSdk = 32

This warning can be suppressed by adding
    android.suppressUnsupportedCompileSdk=34
to this project's gradle.properties

The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 34
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.34f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\32.0.0\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.34f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.34f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-33\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.34f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-34\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.34f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.34f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\32.0.0\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.34f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.34f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-33\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.34f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-34\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.34f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only

> Task :unityLibrary:IronSource.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:preBuild UP-TO-DATE
> Task :launcher:preBuild UP-TO-DATE
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:preReleaseBuild UP-TO-DATE
> Task :launcher:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:mobilenotifications.androidlib:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:mobilenotifications.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:IronSource.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:mobilenotifications.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:IronSource.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:IronSource.androidlib:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:generateReleaseResources UP-TO-DATE
> Task :launcher:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:compileReleaseAidl NO-SOURCE
> Task :launcher:javaPreCompileRelease UP-TO-DATE
> Task :launcher:compileReleaseAidl NO-SOURCE
> Task :launcher:generateReleaseResValues UP-TO-DATE
> Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
> Task :launcher:extractDeepLinksRelease UP-TO-DATE
> Task :launcher:extractProguardFiles UP-TO-DATE
> Task :launcher:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:mergeReleaseNativeLibs UP-TO-DATE
> Task :unityLibrary:stripReleaseDebugSymbols UP-TO-DATE
> Task :unityLibrary:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:packageReleaseResources UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:packageReleaseResources UP-TO-DATE
> Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:packageReleaseResources UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:packageReleaseAssets UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:mobilenotifications.androidlib:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:mergeReleaseNativeLibs NO-SOURCE
> Task :unityLibrary:mobilenotifications.androidlib:mergeReleaseNativeLibs NO-SOURCE
> Task :unityLibrary:IronSource.androidlib:stripReleaseDebugSymbols NO-SOURCE
> Task :unityLibrary:mobilenotifications.androidlib:stripReleaseDebugSymbols NO-SOURCE
> Task :unityLibrary:mobilenotifications.androidlib:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:extractReleaseAnnotations UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:extractReleaseAnnotations UP-TO-DATE
> Task :launcher:compileReleaseRenderscript NO-SOURCE
> Task :launcher:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:mergeReleaseGeneratedProguardFiles
> Task :unityLibrary:IronSource.androidlib:mergeReleaseGeneratedProguardFiles
> Task :unityLibrary:IronSource.androidlib:mergeReleaseConsumerProguardFiles
> Task :unityLibrary:IronSource.androidlib:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:IronSource.androidlib:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:packageReleaseAssets UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:prepareReleaseArtProfile UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:mobilenotifications.androidlib:mergeReleaseConsumerProguardFiles
> Task :unityLibrary:IronSource.androidlib:mergeReleaseJavaResource UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:mobilenotifications.androidlib:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:packageReleaseAssets UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:prepareReleaseArtProfile UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:extractProguardFiles UP-TO-DATE
> Task :launcher:checkReleaseDuplicateClasses FAILED
> Task :unityLibrary:generateReleaseRFile UP-TO-DATE
> Task :launcher:mergeReleaseResources UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:syncReleaseLibJars
> Task :unityLibrary:mobilenotifications.androidlib:generateReleaseLibraryProguardRules

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings
62 actionable tasks: 7 executed, 55 up-to-date

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Error-2:

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
   > Duplicate class com.unity3d.ads.BuildConfig found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.IUnityAdsInitializationListener found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.IUnityAdsLoadListener found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.IUnityAdsShowListener found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.IUnityAdsTokenListener found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.UnityAds found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.UnityAds$UnityAdsInitializationError found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.UnityAds$UnityAdsLoadError found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.UnityAds$UnityAdsShowCompletionState found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.UnityAds$UnityAdsShowError found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.UnityAdsBaseOptions found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.UnityAdsLoadOptions found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.UnityAdsShowOptions found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.metadata.InAppPurchaseMetaData found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.metadata.MediationMetaData found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.metadata.MetaData found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.metadata.PlayerMetaData found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.DispatchGroup found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.GMAAdsError found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.GMAEvent found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.IAdsErrorHandler found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.IScarAdListenerWrapper found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.IScarAdapter found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.IScarInterstitialAdListenerWrapper found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.IScarRewardedAdListenerWrapper found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.IUnityAdsError found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.R found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.ScarAdapterBase found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.ScarAdapterBase$1 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.Utils found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.WebViewAdsError found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.scarads.IScarAd found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.scarads.IScarLoadListener found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.scarads.ScarAdMetadata found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.signals.ISignalCollectionListener found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.R found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.ScarAdapter found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.ScarAdapter$1 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.ScarAdapter$1$1 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.ScarAdapter$2 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.ScarAdapter$2$1 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarAdBase found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarAdListener found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarInterstitialAd found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarInterstitialAdListener found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarInterstitialAdListener$1 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarInterstitialAdListener$2 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarRewardedAd found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarRewardedAdListener found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarRewardedAdListener$1 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarRewardedAdListener$2 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarRewardedAdListener$3 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.signals.QueryInfoCallback found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.UnityServices found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.UnityServices$UnityServicesError found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.UnityAdsImplementation found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.adunit.AdUnitActivity found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.adunit.AdUnitError found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.adunit.AdUnitEvent found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.adunit.AdUnitMotionEvent found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.adunit.AdUnitOpen found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.adunit.AdUnitRelativeLayout found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.adunit.AdUnitSoftwareActivity found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.adunit.AdUnitTransparentActivity found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.adunit.AdUnitTransparentSoftwareActivity found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.adunit.IAdUnitViewHandler found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.adunit.PermissionsEvent found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.adunit.VideoPlayerHandler found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.adunit.WebPlayerHandler found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.adunit.WebViewHandler found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.api.AdUnit found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.api.AdUnit$1 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.api.AdUnit$2 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.api.AdUnit$3 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.api.AdUnit$4 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.api.AdUnit$5 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.api.AdUnit$6 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.api.GMAScar found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.api.Load found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.api.Show found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.api.Token found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.api<message truncated>

Error-3:

CommandInvokationFailure: Gradle build failed. 
C:\Program Files\Unity\Hub\Editor\2022.3.34f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2022.3.34f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-7.2.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

Environment Variables:
RegionCode = APJ
USERDOMAIN = BK
ProgramFiles = C:\Program Files
TMP = C:\Users\BKSIN_~1\AppData\Local\Temp
OneDrive = C:\Users\bksin_cc0kt\OneDrive
PROCESSOR_ARCHITECTURE = AMD64
AMPLITUDE_API_KEY_GREENBUCKET_DEV = 3ded2a762163603391a425f688f990c8
OS = Windows_NT
CHROME_CRASHPAD_PIPE_NAME = \\.\pipe\crashpad_36928_JHMCBXXMSGPUTROI
PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 154 Stepping 4, GenuineIntel
AMPLITUDE_TOKEN_REDBUCKET_DEV = U4PSN7S7PuYVRODivvdcFwbu8R6IHGqa
PROCESSOR_REVISION = 9a04
ProgramW6432 = C:\Program Files
AMPLITUDE_API_KEY_GREENBUCKET_PROD = c86fea37a9e1d3f0878b96e15b111c7c
CommonProgramFiles = C:\Program Files\Common Files
DriverData = C:\Windows\System32\Drivers\DriverData
SENTRY_ACCESS_TOKEN = 3df78d9e53f8456aa90fbae044ce1a6261421ab1d0014674bc2e933477289017
JAVA_HOME = C:\Program Files\Unity\Hub\Editor\2022.3.34f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
AMPLITUDE_DEPLOYMENT_KEY_RED_BUCKET_DEV = client-wbjHYrmeSR87GmWOE7LDpf7sUySOIKHm
AMPLITUDE_TOKEN_GREENBUCKET_PROD = ZpUcbAdZXJYzNSoHsAWtL_s_JppwWid9
ComSpec = C:\WINDOWS\system32\cmd.exe
AMPLITUDE_API_KEY = 28f3cae0b33b8b3702120c9ed1a935aa
LOGONSERVER = \\BK
PSModulePath = %ProgramFiles%\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
ANDROID_NDK_ROOT = C:\Program Files\Unity\Hub\Editor\2022.3.34f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK
SystemRoot = C:\WINDOWS
platformcode = KV
AMPLITUDE_API_KEY_STAGING = 83ee04fccc67e4fcc7dd527c4c6f1e21
WOOTRIC_CLIENT_TOKEN = NPS-aa8be4c3
JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8
DEBUG_ENV_VAR = UnityHub
AMPLITUDE_TOKEN_YELLOWBUCKET_PROD = UYDQtPOw83dIfVy3SrW5oMyo7ru4PRkV
AMPLITUDE_API_KEY_REDBUCKET_DEV = 46b8b46515e7632fc42a504b72e05fd0
TEMP = C:\Users\BKSIN_~1\AppData\Local\Temp
Path = C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\dotnet\;C:\Program Files\Git\cmd;C:\Users\bksin_cc0kt\AppData\Local\Microsoft\WindowsApps;C:\Users\bksin_cc0kt\AppData\Local\GitHubDesktop\bin;C:\Program Files\Unity\Hub\Editor\2022.3.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\;C:\Program Files\openssl-0.9.8k_X64\bin;C:\Users\bksin_cc0kt\.dotnet\tools
USERNAME = bksin_cc0kt
COMPUTERNAME = BK
AMPLITUDE_API_KEY_REDBUCKET_PROD = ca12bb461ea96f9bdf5df4ded7d52994
AMPLITUDE_API_KEY_YELLOWBUCKET_PROD = e03a9bbe92dc38a88cdb068d24c65b46
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
ALLUSERSPROFILE = C:\ProgramData
SystemDrive = C:
OnlineServices = Online Services
windir = C:\WINDOWS
AMPLITUDE_TOKEN_REDBUCKET_PROD = jTIgKs5KTZOjiqEEVdZFbgo_VRhABduL
AMPLITUDE_TOKEN_GREENBUCKET_DEV = 84H2gMm_FJzhr3mBaX1lM1JVukmCM7d9
ZES_ENABLE_SYSMAN = 1
PUBLIC = C:\Users\Public
CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
APPDATA = C:\Users\bksin_cc0kt\AppData\Roaming
ORIGINAL_XDG_CURRENT_DESKTOP = undefined
PROCESSOR_LEVEL = 6
CommonProgramW6432 = C:\Program Files\Common Files
ProgramFiles(x86) = C:\Program Files (x86)
USERPROFILE = C:\Users\bksin_cc0kt
AMPLITUDE_TOKEN_YELLOWBUCKET_DEV = wKi8foVigDditGFvmZewRFWsEbX9Y0YO
AMPLITUDE_API_KEY_YELLOWBUCKET_DEV = 48835b4d1f5e342aefe5f016324d296a
LOCALAPPDATA = C:\Users\bksin_cc0kt\AppData\Local
HOMEPATH = \Users\bksin_cc0kt
ProgramData = C:\ProgramData
HOMEDRIVE = C:
USERDOMAIN_ROAMINGPROFILE = BK
AMPLITUDE_DEPLOYMENT_KEY_RED_BUCKET_PROD = client-zH8Y7OK1i331EKuG77C6UxN8ygcM6LzS
NUMBER_OF_PROCESSORS = 12


stderr[
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
   > Duplicate class com.unity3d.ads.BuildConfig found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.IUnityAdsInitializationListener found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.IUnityAdsLoadListener found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.IUnityAdsShowListener found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.IUnityAdsTokenListener found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.UnityAds found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.UnityAds$UnityAdsInitializationError found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.UnityAds$UnityAdsLoadError found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.UnityAds$UnityAdsShowCompletionState found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.UnityAds$UnityAdsShowError found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.UnityAdsBaseOptions found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.UnityAdsLoadOptions found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.UnityAdsShowOptions found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.metadata.InAppPurchaseMetaData found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.metadata.MediationMetaData found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.metadata.MetaData found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.ads.metadata.PlayerMetaData found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.DispatchGroup found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.GMAAdsError found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.GMAEvent found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.IAdsErrorHandler found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.IScarAdListenerWrapper found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.IScarAdapter found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.IScarInterstitialAdListenerWrapper found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.IScarRewardedAdListenerWrapper found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.IUnityAdsError found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.R found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.ScarAdapterBase found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.ScarAdapterBase$1 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.Utils found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.WebViewAdsError found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.scarads.IScarAd found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.scarads.IScarLoadListener found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.scarads.ScarAdMetadata found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.common.signals.ISignalCollectionListener found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.R found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.ScarAdapter found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.ScarAdapter$1 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.ScarAdapter$1$1 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.ScarAdapter$2 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.ScarAdapter$2$1 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarAdBase found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarAdListener found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarInterstitialAd found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarInterstitialAdListener found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarInterstitialAdListener$1 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarInterstitialAdListener$2 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarRewardedAd found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarRewardedAdListener found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarRewardedAdListener$1 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarRewardedAdListener$2 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.scarads.ScarRewardedAdListener$3 found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.scar.adapter.v2000.signals.QueryInfoCallback found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.UnityServices found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.UnityServices$UnityServicesError found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.UnityAdsImplementation found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.adunit.AdUnitActivity found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.adunit.AdUnitError found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.adunit.AdUnitEvent found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.adunit.AdUnitMotionEvent found in modules jetified-UnityAds-runtime (:UnityAds:) and jetified-unity-ads-4.12.2-runtime (com.unity3d.ads:unity-ads:4.12.2)
     Duplicate class com.unity3d.services.ads.adunit.AdUnit<message truncated>
1 Like

My solution for AR Masker in building with Unity Ads Mediation/LevelPlay/ironSource was to:

  1. Delete this line from mainTemplate.gradle file:
maven {
    url "https://maven.google.com"
}
  1. Add this line to settingsTemplate.gradle file in dependencyResolutionManagement to repositories section:
        maven {
    url "https://android-sdk.is.com/" // Assets/LevelPlay/Editor/IronSourceAdQualityDependencies.xml:9, Assets/LevelPlay/Editor/IronSourceSDKDependencies.xml:9, Assets/LevelPlay/Editor/ISUnityAdsAdapterDependencies.xml:8
}

Also, If you have any checked stuff in the build section on the screenshot, please, provide these files:

1 Like

I tried what you said but it didn’t seem to work…

1 Like


@makaka-org please take a look at this.

1 Like

By the way here is my mainTemplate.gradle:

// Android Resolver Repos Start
([rootProject] + (rootProject.subprojects as List)).each {
    ext {
        it.setProperty("android.useAndroidX", true)
        it.setProperty("android.enableJetifier", true)
    }
}
([rootProject] + (rootProject.subprojects as List)).each { project ->
    project.repositories {
        def unityProjectPath = $/file:///**DIR_UNITYPROJECT**/$.replace("\\", "/")
        maven {
            url "https://android-sdk.is.com/" // Assets/LevelPlay/Editor/IronSourceSDKDependencies.xml:9, Assets/LevelPlay/Editor/ISUnityAdsAdapterDependencies.xml:8
        }
        maven {
            url "https://maven.google.com/" // Assets/LevelPlay/Editor/IronSourceSDKDependencies.xml:17, Assets/LevelPlay/Editor/IronSourceSDKDependencies.xml:25, Assets/LevelPlay/Editor/ISUnityAdsAdapterDependencies.xml:15
        }
        mavenLocal()
        jcenter()
        mavenCentral()
    }
}
// Android Resolver Repos End
apply plugin: 'com.android.library'
**APPLY_PLUGINS**

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
// Android Resolver Dependencies Start
    implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1' // Assets/LevelPlay/Editor/IronSourceSDKDependencies.xml:17
    implementation 'com.google.android.gms:play-services-basement:18.1.0' // Assets/LevelPlay/Editor/IronSourceSDKDependencies.xml:25
    implementation 'com.ironsource.adapters:unityadsadapter:4.3.42' // Assets/LevelPlay/Editor/ISUnityAdsAdapterDependencies.xml:8
    implementation 'com.ironsource.sdk:mediationsdk:8.3.0' // Assets/LevelPlay/Editor/IronSourceSDKDependencies.xml:9
    implementation 'com.unity3d.ads:unity-ads:4.12.2' // Assets/LevelPlay/Editor/ISUnityAdsAdapterDependencies.xml:15
// Android Resolver Dependencies End
**DEPS**}

// Android Resolver Exclusions Start
android {
  packagingOptions {
      exclude ('/lib/armeabi/*' + '*')
      exclude ('/lib/mips/*' + '*')
      exclude ('/lib/mips64/*' + '*')
      exclude ('/lib/x86/*' + '*')
      exclude ('/lib/x86_64/*' + '*')
  }
}
// Android Resolver Exclusions End
android {
    ndkPath "**NDKPATH**"

    compileSdkVersion **APIVERSION**
    buildToolsVersion '**BUILDTOOLS**'

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_11
        targetCompatibility JavaVersion.VERSION_11
    }

    defaultConfig {
        minSdkVersion **MINSDKVERSION**
        targetSdkVersion **TARGETSDKVERSION**
        ndk {
            abiFilters **ABIFILTERS**
        }
        versionCode **VERSIONCODE**
        versionName '**VERSIONNAME**'
        consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
    }

    lintOptions {
        abortOnError false
    }

    aaptOptions {
        noCompress = **BUILTIN_NOCOMPRESS** + unityStreamingAssets.tokenize(', ')
        ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~"
    }**PACKAGING_OPTIONS**
}
**IL_CPP_BUILD_SETUP**
**SOURCE_BUILD_SETUP**
**EXTERNAL_SOURCES**

and settingsTemplate:

pluginManagement {
    repositories {
        **ARTIFACTORYREPOSITORY**
        maven {
    url "https://android-sdk.is.com/" // Assets/LevelPlay/Editor/IronSourceAdQualityDependencies.xml:9, Assets/LevelPlay/Editor/IronSourceSDKDependencies.xml:9,            Assets/LevelPlay/Editor/ISUnityAdsAdapterDependencies.xml:8
        }
        gradlePluginPortal()
        google()
        mavenCentral()
    }
}

include ':launcher', ':unityLibrary'
**INCLUDES**


1 Like

Also I get this error everytime build fails.
(Sorry for posting multiple replies I just realise next thing after I post the previous one)

image

1 Like

nope, That’s not what I said. Here is correct:

pluginManagement {
    repositories {
        **ARTIFACTORYREPOSITORY**
        gradlePluginPortal()
        google()
        mavenCentral()
    }
}

include ':launcher', ':unityLibrary'
**INCLUDES**

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
    repositories {
        **ARTIFACTORYREPOSITORY**
        google()
        mavenCentral()
        maven {
            url "https://android-sdk.is.com/" // Assets/LevelPlay/Editor/IronSourceAdQualityDependencies.xml:9, Assets/LevelPlay/Editor/IronSourceSDKDependencies.xml:9, Assets/LevelPlay/Editor/ISUnityAdsAdapterDependencies.xml:8
        }
// Android Resolver Repos Start
        def unityProjectPath = $/file:///**DIR_UNITYPROJECT**/$.replace("\\", "/")
        mavenLocal()
// Android Resolver Repos End
        flatDir {
            dirs "${project(':unityLibrary').projectDir}/libs"
        }
    }
}

1 Like

Okk! It works fine now!
Thank a lot man, you have been a savior for me!

2 Likes