環境
- OS:Windows 10 Pro
- Unity:2021.3.18f1
- AdMob:GoogleMobileAds-v7.2.0.unitypackage
- APIレベル:33
現象
Androidビルド時に以下の5つのエラーが出る。
Starting a Gradle Daemon, 1 incompatible and 4 stopped Daemons could not be reused, use --status for details
> Configure project :launcher
WARNING: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :launcher:preBuild UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preBuild UP-TO-DATE
> Task :launcher:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResources UP-TO-DATE
> Task :launcher:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseResources UP-TO-DATE
> Task :launcher:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:packageReleaseResources UP-TO-DATE
> Task :launcher:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
> Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseLibraryResources UP-TO-DATE
> Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibRuntimeToJarRelease 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 :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibResRelease NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseNativeLibs UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:stripReleaseDebugSymbols NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:copyReleaseJniLibsProjectOnly UP-TO-DATE
> Task :unityLibrary:packageReleaseAssets
> Task :launcher:mergeReleaseResources UP-TO-DATE
> Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
> Task :launcher:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:generateReleaseRFile UP-TO-DATE
> Task :launcher:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:compileReleaseJavaWithJavac UP-TO-DATE
> Task :unityLibrary:bundleLibRuntimeToJarRelease UP-TO-DATE
> Task :unityLibrary:bundleLibCompileToJarRelease UP-TO-DATE
> Task :unityLibrary:processReleaseJavaRes UP-TO-DATE
> Task :unityLibrary:bundleLibResRelease UP-TO-DATE
> Task :launcher:bundleReleaseResources UP-TO-DATE
> Task :unityLibrary:mergeReleaseJniLibFolders
> Task :launcher:checkReleaseDuplicateClasses FAILED
> Task :unityLibrary:mergeReleaseNativeLibs
42 actionable tasks: 4 executed, 38 up-to-date
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
> 1 exception was raised by workers:
java.lang.RuntimeException: Duplicate class com.google.android.gms.ads.internal.ClientApi found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.AdOverlayInfoParcel found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zza found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzaa found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzb found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzc found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzd found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zze found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzf found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzg found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzh found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzi found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzj found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzk found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzl found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzm found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzn found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzo found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzp found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzq found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzr found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzs found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzt found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzu found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzv found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzy found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-lite-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-lite-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzz found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zza found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzaa found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzab found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzac found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzad found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzae found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzaf found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzag found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzah found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzai found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzaj found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzak found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzal found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzam found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzan found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzao found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzap found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzaq found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzar found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzas found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzat found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzau found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzav found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzaw found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzax found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.googl<message truncated>
CommandInvokationFailure: Gradle build failed.
C:\Program Files\Unity\Hub\Editor\2021.3.18f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2021.3.18f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "bundleRelease"
Environment Variables:
USERDOMAIN = LAPTOP-J7CFINI2
ProgramFiles = C:\Program Files
TMP = C:\Users\daiji\AppData\Local\Temp
PROCESSOR_ARCHITECTURE = AMD64
PROCESSOR_REVISION = 8e09
OneDriveConsumer = C:\Users\daiji\OneDrive
OS = Windows_NT
CHROME_CRASHPAD_PIPE_NAME = \\.\pipe\crashpad_6672_ZQIJWTHCPOLYKXHC
PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
ProgramW6432 = C:\Program Files
USERPROFILE = C:\Users\daiji
JAVA_HOME = C:\Program Files\Unity\Hub\Editor\2021.3.18f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
CommonProgramFiles = C:\Program Files\Common Files
DriverData = C:\Windows\System32\Drivers\DriverData
ComSpec = C:\WINDOWS\system32\cmd.exe
PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
ANDROID_NDK_ROOT = C:\Program Files\Unity\Hub\Editor\2021.3.18f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK
USERNAME = daijiro
NUMBER_OF_PROCESSORS = 4
JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8
BURST_ANDROID_MIN_API_LEVEL = 22
FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer
TEMP = C:\Users\daiji\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 (x86)\Intel\Intel(R) Management Engine Components\DAL;c:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Ruby31-x64\bin;C:\Users\daiji\AppData\Local\Microsoft\WindowsApps;;C:\Users\daiji\AppData\Local\Programs\Microsoft VS Code\bin
COMPUTERNAME = LAPTOP-J7CFINI2
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.RB;.RBW
ALLUSERSPROFILE = C:\ProgramData
SystemDrive = C:
windir = C:\WINDOWS
FPS_BROWSER_USER_PROFILE_STRING = Default
HOMEPATH = \Users\daiji
PUBLIC = C:\Users\Public
CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
APPDATA = C:\Users\daiji\AppData\Roaming
OneDrive = C:\Users\daiji\OneDrive
PROCESSOR_LEVEL = 6
CommonProgramW6432 = C:\Program Files\Common Files
ProgramFiles(x86) = C:\Program Files (x86)
SystemRoot = C:\WINDOWS
SESSIONNAME = Console
LOGONSERVER = \\LAPTOP-J7CFINI2
LOCALAPPDATA = C:\Users\daiji\AppData\Local
configsetroot = C:\WINDOWS\ConfigSetRoot
HOMEDRIVE = C:
USERDOMAIN_ROAMINGPROFILE = LAPTOP-J7CFINI2
ProgramData = C:\ProgramData
ORIGINAL_XDG_CURRENT_DESKTOP = undefined
stderr[
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
> 1 exception was raised by workers:
java.lang.RuntimeException: Duplicate class com.google.android.gms.ads.internal.ClientApi found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.AdOverlayInfoParcel found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zza found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzaa found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzb found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzc found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzd found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zze found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzf found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzg found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzh found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzi found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzj found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzk found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzl found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzm found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzn found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzo found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzp found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzq found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzr found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzs found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzt found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzu found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzv found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzy found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-lite-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-lite-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.overlay.zzz found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zza found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzaa found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzab found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzac found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzad found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzae found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzaf found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzag found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzah found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzai found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzaj found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzak found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzal found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzam found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzan found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.android.gms.play-services-ads-21.0.0:)
Duplicate class com.google.android.gms.ads.internal.util.zzao found in modules com.google.android.gms.play-services-ads-19.5.0-runtime.jar (:com.google.android.gms.play-services-ads-19.5.0:) and com.google.android.gms.play-services-ads-21.0.0-runtime.jar (:com.google.andro<message truncated>
Build completed with a result of 'Failed' in 2185 seconds (2185467 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002da] in <42a64fd733d9417da1ea3a757ad9a96d>:0
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <42a64fd733d9417da1ea3a757ad9a96d>:0
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
原因
調べてみるとcom.google.android.gms.play-services-ads-19.5.0-runtime.jarとcom.google.android.gms.play-services-ads-21.0.0-runtime.jarが重複しているということらしい。
解決策
古いバージョンのcom.google.android.gms.play-services-ads-19.5.0-runtime.jarのほうをプロジェクト内でファイル検索をして削除。
これでビルド通りました。この現象で困っている方は試してみてください。
コメント