Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question CheckDuplicatesRunnable

Discussion in 'Android' started by Flawless83, Sep 26, 2023.

  1. Flawless83

    Flawless83

    Joined:
    Dec 7, 2016
    Posts:
    131
    So i get this error when trying to build, there is something wrong with the google ads plugin.
    When i delete the plugin i can build again, and i tried looking thru the errors but cant find out what it is.

    Google Mobile Ads Unity Plugin v8.5.2 is the one i use, i also upgraded my project from 2019 to 2022, but the problem was on all versions, please can someone find out whats wrong i been struggling for literal months.


    A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable See the Console for details.



    > Configure project :launcher
    WARNING:The option setting 'android.bundle.enableUncompressedNativeLibs=false' is deprecated.
    The current default is 'true'.
    It will be removed in version 8.0 of the Android Gradle plugin.
    You can add the following to your build.gradle instead:
    android {
    packagingOptions {
    jniLibs {
    useLegacyPackaging = true
    }
    }
    }
    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
    > Task :unityLibrary:preBuild UP-TO-DATE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preBuild UP-TO-DATE
    > Task :launcher:preBuild UP-TO-DATE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preReleaseBuild UP-TO-DATE
    > Task :unityLibrary:preReleaseBuild UP-TO-DATE
    > Task :launcher:preReleaseBuild UP-TO-DATE
    > Task :UnityDataAssetPack:generateAssetPackManifest UP-TO-DATE
    > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
    > Task :launcher:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
    > Task :unityLibrary:generateReleaseResources UP-TO-DATE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResValues UP-TO-DATE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResources UP-TO-DATE
    > Task :unityLibrary:packageReleaseResources UP-TO-DATE
    > Task :launcher:processReleaseAssetPackManifests UP-TO-DATE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseResources UP-TO-DATE
    > Task :unityLibrary:processReleaseManifest UP-TO-DATE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
    > Task :launcher:linkReleaseManifestForAssetPacks UP-TO-DATE
    > Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
    > Task :unityLibrary:compileReleaseShaders NO-SOURCE
    > Task :unityLibrary:generateReleaseAssets UP-TO-DATE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseManifest UP-TO-DATE
    > Task :unityLibrary:packageReleaseAssets UP-TO-DATE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseLibraryResources UP-TO-DATE
    > Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseShaders UP-TO-DATE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseShaders NO-SOURCE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseAssets UP-TO-DATE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseAssets UP-TO-DATE
    > Task :launcher:compileReleaseRenderscript NO-SOURCE
    > Task :launcher:generateReleaseResources UP-TO-DATE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:parseReleaseLocalResources UP-TO-DATE
    > Task :unityLibrary:compileReleaseAidl NO-SOURCE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseBuildConfig UP-TO-DATE
    > Task :unityLibrary:javaPreCompileRelease
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:javaPreCompileRelease
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseJavaRes NO-SOURCE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibResRelease NO-SOURCE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseRFile
    > Task :unityLibrary:parseReleaseLocalResources
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseJniLibFolders
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:writeReleaseAarMetadata
    > Task :unityLibrary:writeReleaseAarMetadata
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseNativeLibs NO-SOURCE
    > Task :launcher:mergeReleaseResources UP-TO-DATE
    > Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
    > Task :launcher:extractDeepLinksRelease UP-TO-DATE
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:copyReleaseJniLibsProjectOnly
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:prepareReleaseArtProfile
    > Task :unityLibrary:processReleaseJavaRes
    > Task :unityLibrary:bundleLibResRelease
    > Task :unityLibrary:generateReleaseRFile
    > Task :launcher:processReleaseMainManifest
    [com.google.android.play:asset-delivery:2.0.0] C:\Users\opped\.gradle\caches\transforms-3\c6f1bc56ed613e482318cfd0ae07447b\transformed\asset-delivery-2.0.0\AndroidManifest.xml Warning:
    Package name 'com.google.android.play.core.client' used in: com.google.android.play:asset-delivery:2.0.0, com.google.android.play:core-common:2.0.0.
    [:googlemobileads-unity:] C:\Users\opped\.gradle\caches\transforms-3\a50178cda22edc487eaaa1b43e3a0429\transformed\googlemobileads-unity\AndroidManifest.xml Warning:
    Package name 'com.google.unity.ads' used in: :googlemobileads-unity:, :unityLibrary:GoogleMobileAdsPlugin.androidlib.
    [:com.google.android.gms.play-services-basement-18.0.0:] C:\Users\opped\.gradle\caches\transforms-3\b38d206231690b9fd5bdd2ab38fe7cd3\transformed\com.google.android.gms.play-services-basement-18.0.0\AndroidManifest.xml Warning:
    Package name 'com.google.android.gms.common' used in: :com.google.android.gms.play-services-basement-18.0.0:, com.google.android.gms:play-services-basement:16.0.1.
    [:com.google.android.gms.play-services-tasks-18.0.1:] C:\Users\opped\.gradle\caches\transforms-3\02a4756198d7e3dd02df66539b73aa7f\transformed\com.google.android.gms.play-services-tasks-18.0.1\AndroidManifest.xml Warning:
    Package name 'com.google.android.gms.tasks' used in: :com.google.android.gms.play-services-tasks-18.0.1:, com.google.android.gms:play-services-tasks:16.0.1.
    > Task :launcher:processReleaseManifest
    > Task :launcher:processApplicationManifestReleaseForBundle
    > Task :launcher:mergeReleaseShaders UP-TO-DATE
    > Task :launcher:compileReleaseShaders NO-SOURCE
    > Task :launcher:generateReleaseAssets UP-TO-DATE
    > Task :launcher:mergeReleaseAssets
    > Task :launcher:compileReleaseAidl NO-SOURCE
    > Task :launcher:generateReleaseBuildConfig
    > Task :launcher:javaPreCompileRelease
    > Task :launcher:checkReleaseDuplicateClasses FAILED
    > Task :launcher:extractProguardFiles
    > Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac
    > Task :launcher:bundleReleaseResources
    > Task :launcher:processReleaseManifestForPackage
    > Task :unityLibrary:mergeReleaseJniLibFolders
    > Task :launcher:assetPackReleasePreBundleTask
    50 actionable tasks: 25 executed, 25 up-to-date
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)



    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 android.support.v4.app.INotificationSideChannel found in modules androidx.core.core-1.6.0-runtime :)androidx.core.core-1.6.0:) and support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
    Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules androidx.core.core-1.6.0-runtime :)androidx.core.core-1.6.0:) and support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
    Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules androidx.core.core-1.6.0-runtime :)androidx.core.core-1.6.0:) and support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
    Duplicate class android.support.v4.os.IResultReceiver found in modules androidx.core.core-1.6.0-runtime :)androidx.core.core-1.6.0:) and support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
    Duplicate class android.support.v4.os.IResultReceiver$Stub found in modules androidx.core.core-1.6.0-runtime :)androidx.core.core-1.6.0:) and support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
    Duplicate class android.support.v4.os.IResultReceiver$Stub$Proxy found in modules androidx.core.core-1.6.0-runtime :)androidx.core.core-1.6.0:) and support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
    Duplicate class android.support.v4.os.ResultReceiver found in modules androidx.core.core-1.6.0-runtime :)androidx.core.core-1.6.0:) and support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
    Duplicate class android.support.v4.os.ResultReceiver$1 found in modules androidx.core.core-1.6.0-runtime :)androidx.core.core-1.6.0:) and support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
    Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules androidx.core.core-1.6.0-runtime :)androidx.core.core-1.6.0:) and support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
    Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules androidx.core.core-1.6.0-runtime :)androidx.core.core-1.6.0:) and support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
    Duplicate class com.google.android.gms.actions.ItemListIntents found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.actions.NoteIntents found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.actions.ReserveIntents found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.actions.SearchIntents found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.AccountPicker found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.BlockingServiceConnection found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.ConnectionResult found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.Feature found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.FirstPartyScopes found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.GoogleApiAvailabilityLight found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.GooglePlayServicesNotAvailableException found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.GooglePlayServicesRepairableException found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.GooglePlayServicesUtilLight found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.GoogleSignatureVerifier found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.ProGuardCanary found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.Scopes found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.UserRecoverableException found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.annotation.KeepForSdk found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.annotation.KeepForSdkWithFieldsAndMethods found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.annotation.KeepForSdkWithMembers found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.annotation.KeepName found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.ApiException found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.CommonStatusCodes found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.Releasable found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.ResolvableApiException found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.ResolvingResultCallbacks found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.Response found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.Result found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.ResultCallback found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.ResultCallbacks found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.Scope found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.Status found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.UnsupportedApiCallException found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.internal.BackgroundDetector found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.internal.BackgroundDetector$BackgroundStateChangeListener found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.internal.GoogleServices found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.internal.LifecycleActivity found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.internal.LifecycleCallback found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.internal.LifecycleFragment found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.internal.StatusExceptionMapper found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.internal.zza found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.internal.zzb found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.internal.zzc found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.internal.zzd found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.zza found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate clas<message truncated>



    CommandInvokationFailure: Gradle build failed.
    C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-7.2.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "bundleRelease"
    Environment Variables:
    RlsSvcPort = 22112
    USERDOMAIN = RONNIE
    ProgramFiles = C:\Program Files
    EFC_4424 = 1
    TMP = C:\Users\opped\AppData\Local\Temp
    PROCESSOR_ARCHITECTURE = AMD64
    ORIGINAL_XDG_CURRENT_DESKTOP = undefined
    OneDriveConsumer = C:\Users\opped\OneDrive
    OS = Windows_NT
    CHROME_CRASHPAD_PIPE_NAME = \\.\pipe\crashpad_6276_FJUNHLHXHHXWAREJ
    PROCESSOR_IDENTIFIER = AMD64 Family 25 Model 97 Stepping 2, AuthenticAMD
    PROCESSOR_REVISION = 6102
    AMPLITUDE_API_KEY = 28f3cae0b33b8b3702120c9ed1a935aa
    USERPROFILE = C:\Users\opped
    JAVA_HOME = C:\Program Files\Unity\Hub\Editor\2022.3.9f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
    CommonProgramFiles = C:\Program Files\Common Files
    DriverData = C:\Windows\System32\Drivers\DriverData
    ComSpec = C:\WINDOWS\system32\cmd.exe
    LAUNCH_DARKLY_CLIENT_TOKEN = 60a7e30fafc7e60e33446283
    PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
    PUBLIC = C:\Users\Public
    SystemRoot = C:\WINDOWS
    HEAP_CLIENT_TOKEN = 1717415662
    NUMBER_OF_PROCESSORS = 32
    WOOTRIC_CLIENT_TOKEN = NPS-aa8be4c3
    JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8
    DEBUG_ENV_VAR = UnityHub
    ProgramW6432 = C:\Program Files
    ACSetupSvcPort = 23210
    Path = C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\opped\AppData\Local\Microsoft\WindowsApps;
    ACSvcPort = 17532
    USERNAME = opped
    COMPUTERNAME = RONNIE
    USERDOMAIN_ROAMINGPROFILE = RONNIE
    PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    SystemDrive = C:
    ALLUSERSPROFILE = C:\ProgramData
    SENTRY_ACCESS_TOKEN = 3df78d9e53f8456aa90fbae044ce1a6261421ab1d0014674bc2e933477289017
    HEAP_CLIENT_TOKEN_STAGING = 3786794399
    windir = C:\WINDOWS
    AMPLITUDE_API_KEY_STAGING = 83ee04fccc67e4fcc7dd527c4c6f1e21
    CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
    APPDATA = C:\Users\opped\AppData\Roaming
    OneDrive = C:\Users\opped\OneDrive
    PROCESSOR_LEVEL = 25
    CommonProgramW6432 = C:\Program Files\Common Files
    ProgramFiles(x86) = C:\Program Files (x86)
    SESSIONNAME = Console
    LOGONSERVER = \\RONNIE
    LOCALAPPDATA = C:\Users\opped\AppData\Local
    VBOX_HWVIRTEX_IGNORE_SVM_IN_USE = 1
    HOMEPATH = \Users\opped
    LAUNCH_DARKLY_CLIENT_TOKEN_STAGING = 60a7e30fafc7e60e33446282
    HOMEDRIVE = C:
    TEMP = C:\Users\opped\AppData\Local\Temp
    ProgramData = C:\ProgramData
    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 android.support.v4.app.INotificationSideChannel found in modules androidx.core.core-1.6.0-runtime :)androidx.core.core-1.6.0:) and support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
    Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules androidx.core.core-1.6.0-runtime :)androidx.core.core-1.6.0:) and support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
    Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules androidx.core.core-1.6.0-runtime :)androidx.core.core-1.6.0:) and support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
    Duplicate class android.support.v4.os.IResultReceiver found in modules androidx.core.core-1.6.0-runtime :)androidx.core.core-1.6.0:) and support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
    Duplicate class android.support.v4.os.IResultReceiver$Stub found in modules androidx.core.core-1.6.0-runtime :)androidx.core.core-1.6.0:) and support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
    Duplicate class android.support.v4.os.IResultReceiver$Stub$Proxy found in modules androidx.core.core-1.6.0-runtime :)androidx.core.core-1.6.0:) and support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
    Duplicate class android.support.v4.os.ResultReceiver found in modules androidx.core.core-1.6.0-runtime :)androidx.core.core-1.6.0:) and support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
    Duplicate class android.support.v4.os.ResultReceiver$1 found in modules androidx.core.core-1.6.0-runtime :)androidx.core.core-1.6.0:) and support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
    Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules androidx.core.core-1.6.0-runtime :)androidx.core.core-1.6.0:) and support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
    Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules androidx.core.core-1.6.0-runtime :)androidx.core.core-1.6.0:) and support-compat-26.1.0-runtime (com.android.support:support-compat:26.1.0)
    Duplicate class com.google.android.gms.actions.ItemListIntents found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.actions.NoteIntents found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.actions.ReserveIntents found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.actions.SearchIntents found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.AccountPicker found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.BlockingServiceConnection found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.ConnectionResult found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.Feature found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.FirstPartyScopes found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.GoogleApiAvailabilityLight found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.GooglePlayServicesNotAvailableException found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.GooglePlayServicesRepairableException found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.GooglePlayServicesUtilLight found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.GoogleSignatureVerifier found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.ProGuardCanary found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.Scopes found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.UserRecoverableException found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.annotation.KeepForSdk found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.annotation.KeepForSdkWithFieldsAndMethods found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.annotation.KeepForSdkWithMembers found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.annotation.KeepName found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.ApiException found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.CommonStatusCodes found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.Releasable found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.ResolvableApiException found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.ResolvingResultCallbacks found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.Response found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.Result found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.ResultCallback found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.ResultCallbacks found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.Scope found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.Status found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.UnsupportedApiCallException found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.internal.BackgroundDetector found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.internal.BackgroundDetector$BackgroundStateChangeListener found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-services-basement:16.0.1)
    Duplicate class com.google.android.gms.common.api.internal.GoogleServices found in modules com.google.android.gms.play-services-basement-18.0.0-runtime :)com.google.android.gms.play-services-basement-18.0.0:) and play-services-basement-16.0.1-runtime (com.google.android.gms:play-<message truncated>



    Build completed with a result of 'Failed' in 10 seconds (10119 ms)
    3 errors
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
     
  2. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,817
    It states you have two versions of play-services-basement library (18.0.0 and 16.0.1). Usually this happens for either of the below cases.
    1. When you crash the EDMU's resolver while it's resolving or
    2. If you have a plugin which ships with the library instead of using EDMU

    Try the following
    1. Click on Assets -> EDMU -> Android -> Delete Resolved Libraries (from Menu bar)
    2. Check if there is any file (here basement aar) left in Assets/Plugins/Android folder. If so, delete it.
    3. Force resolve from Assets -> EDMU -> Android -> Force Resolve (from Menu bar)


    EDMU -> External Dependency Manager for Unity maintained by Google for library resolution.
     
  3. Flawless83

    Flawless83

    Joined:
    Dec 7, 2016
    Posts:
    131
    Thx for replying, i tried that and still get same error, can i manualy delete it from my project thru windows?


    also gopt this error aswell now along all the others.


    BuildMethodException: [GoogleMobileAds] AndroidManifest.xml is missing. Try re-importing the plugin.
    ManifestProcessor.StopBuildWithMessage (System.String message) (at Assets/GoogleMobileAds/Editor/ManifestProcessor.cs:240)
    ManifestProcessor.OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport report) (at Assets/GoogleMobileAds/Editor/ManifestProcessor.cs:100)
    UnityEditor.Build.BuildPipelineInterfaces+<>c__DisplayClass16_0.<OnBuildPreProcess>b__1 (UnityEditor.Build.IPreprocessBuildWithReport bpp) (at <2e279d988b9d4542841de511fbfdf8c2>:0)
    UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List`1[T] oneInterfaces, System.Action`1[T] invocationOne, System.Collections.Generic.List`1[T] twoInterfaces, System.Action`1[T] invocationTwo, System.Boolean exitOnFailure) (at <2e279d988b9d4542841de511fbfdf8c2>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)


    when i delete the pugin and reinstall that error goes away thou.
     
    Last edited: Sep 26, 2023
  4. Flawless83

    Flawless83

    Joined:
    Dec 7, 2016
    Posts:
    131
    Ok, so i tried build it as apk and now it builds, the thing is my app is to big so have to build it as Buiuld App Bundle and set split application binary, can someone explain why it dosnt work with app bundle?

    Tried set it back to app bundle and split application binary, and now i get error again.

    Tried set only app bundle and it build, gonna see if i can upload it to google play.

    When i try upload it i get this error when not having split application binary on:

    Your App Bundle contains the following configurations where the initial install would exceed the maximum size of 150 MB: arm64-v8a,armeabi-v7a

    So i need the split application binary on but then the error arrivies, wow its like a evil loop, i fix 1 problem another arrives and when fixed enough of them i end up at the start with the same problem, wow this is annoying.

    Im gonna try a new project tomorrow. and see if that works.
     
    Last edited: Sep 26, 2023
  5. Voxel-Busters

    Voxel-Busters

    Joined:
    Feb 25, 2015
    Posts:
    1,817
    If you can share a minimal reproducible project, I can give a try.
     
  6. Flawless83

    Flawless83

    Joined:
    Dec 7, 2016
    Posts:
    131
    ok so i used a new project set up the google ads package.

    https://github.com/googleads/googleads-mobile-unity/releases/tag/v8.5.2

    and the problem is still there.

    all i do is set on split application binary, its at the bottom of player settings - publishing settings.
    also set on build app bundle(google play) in the build settings and i get this error.

    so looks like there is some wrong with the package when i use build app bundle (google play) and split application binary togheter.

    if i disable 1 of them it works but i need both to post my game cause my game is over 150 mb.

    if i build as apk it works so ofc it will work for people having a game thats less than 150mb, but for us that has a larger game it wont work, im prety sure it must be a bug.

    and also thx for the replies.

    edit: if i use,

    Custom Main Gradle Template.
    Custom Gradle Properties Template
    Custom Gradle Properties Template

    it does build but the adds wont show.

    btw to make it work you sometimes have to uncheck and check the android options in external tools, that is a known bug
     
    Last edited: Sep 27, 2023
  7. Flawless83

    Flawless83

    Joined:
    Dec 7, 2016
    Posts:
    131
    if you would try it out and see if you also get the same error, that be great.
    would be nice to figure out what the problem is.
     
  8. VirginiaWethington

    VirginiaWethington

    Joined:
    Oct 18, 2023
    Posts:
    1
    Working with larger games and Unity's build configurations is tricky, I learned today.Working with larger games and Unity's build configurations is tricky, I learned today. I was faced with the challenge of writing a paper on philosophy. I thought, “I have to write a paper on philosophy, but I don’t know how to write it!” So I decided to hire a professional From https://www.grabmyessay.com/write-my-philosophy-research-paper to write my paper for me. I was pleasantly surprised at how affordable this service was, and the result was outstanding. The essay I received was exactly what I was looking for, and it showed a deep comprehension of the topic. If you’re in the same situation, don’t hesitate to hire professional help – it’s affordable, and it pays off in the end.
     
    Last edited: Oct 25, 2023 at 12:16 PM