Android Error Gradle build failed.

Hello everybody,
I recently updated Unity to version 2021.1.5f1, when I try to compile for Android I get these errors:

Error 1:

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

> Configure project :launcher
WARNING: The option 'android.enableR8' is deprecated and should not be used anymore.
It will be removed in a future version of the Android Gradle plugin, and will no longer allow you to disable R8.

> Task :launcher:preBuild UP-TO-DATE
> Task :unityLibrary:an_library.bundle:preBuild UP-TO-DATE
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :unityLibrary:an_library.bundle:preDebugBuild UP-TO-DATE
> Task :launcher:preDebugBuild UP-TO-DATE
> Task :unityLibrary:preDebugBuild UP-TO-DATE
> Task :unityLibrary:packageDebugRenderscript NO-SOURCE
> Task :unityLibrary:an_library.bundle:compileDebugAidl NO-SOURCE
> Task :unityLibrary:an_library.bundle:packageDebugRenderscript NO-SOURCE
> Task :unityLibrary:compileDebugAidl NO-SOURCE
> Task :unityLibrary:an_library.bundle:compileDebugRenderscript NO-SOURCE
> Task :unityLibrary:compileDebugRenderscript NO-SOURCE
> Task :unityLibrary:an_library.bundle:generateDebugResValues
> Task :unityLibrary:an_library.bundle:generateDebugResources
> Task :launcher:generateDebugBuildConfig
> Task :unityLibrary:generateDebugBuildConfig
> Task :launcher:compileDebugAidl NO-SOURCE
> Task :launcher:compileDebugRenderscript NO-SOURCE
> Task :unityLibrary:generateDebugResValues
> Task :unityLibrary:generateDebugResources
> Task :launcher:mainApkListPersistenceDebug
> Task :launcher:generateDebugResValues
> Task :launcher:generateDebugResources
> Task :launcher:createDebugCompatibleScreenManifests
> Task :launcher:extractDeepLinksDebug
> Task :launcher:mergeDebugShaders
> Task :launcher:compileDebugShaders
> Task :launcher:generateDebugAssets
> Task :launcher:processDebugJavaRes NO-SOURCE
> Task :unityLibrary:packageDebugResources
> Task :unityLibrary:extractDeepLinksDebug
> Task :launcher:checkDebugDuplicateClasses FAILED
> Task :unityLibrary:an_library.bundle:packageDebugResources
> Task :unityLibrary:processDebugManifest
> Task :unityLibrary:parseDebugLocalResources
> Task :unityLibrary:compileDebugLibraryResources
17 actionable tasks: 17 executed

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

Error 2:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:checkDebugDuplicateClasses'.
> 1 exception was raised by workers:
  java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class com.android.billingclient.BuildConfig found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.AccountIdentifiers found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.AcknowledgePurchaseParams found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.AcknowledgePurchaseParams$Builder found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.AcknowledgePurchaseResponseListener found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingClient found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingClient$BillingResponseCode found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingClient$Builder found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingClient$FeatureType found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingClient$SkuType found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingClientImpl found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingClientImpl$zza found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingClientImpl$zzb found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingClientStateListener found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingFlowParams found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingFlowParams$Builder found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingFlowParams$ProrationMode found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingResult found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingResult$Builder found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.ConsumeParams found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.ConsumeParams$Builder found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.ConsumeResponseListener found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.PriceChangeConfirmationListener found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.PriceChangeFlowParams found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.PriceChangeFlowParams$Builder found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.ProxyBillingActivity found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.Purchase found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.Purchase$PurchaseState found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.Purchase$PurchasesResult found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.PurchaseHistoryRecord found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.PurchaseHistoryResponseListener found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.PurchasesUpdatedListener found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.SkuDetails found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.SkuDetails$zza found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.SkuDetailsParams found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.SkuDetailsParams$Builder found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.SkuDetailsResponseListener found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zza found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzaa found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzab found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzac found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzad found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzae found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzaf found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzag found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzah found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzai found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzaj found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzak found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzal found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzam found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzan found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzao found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzap found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzap$zza found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzb found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzb$zza found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzc found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzd found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zze found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzf found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzg found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzh found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzi found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzj found in modules<message truncated>

Error 3:

CommandInvokationFailure: Gradle build failed.
E:\Programmi Lavoro\Unity\2021.1.5f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "E:\Programmi Lavoro\Unity\2021.1.5f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.6.4.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleDebug"

stderr[

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:checkDebugDuplicateClasses'.
> 1 exception was raised by workers:
  java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class com.android.billingclient.BuildConfig found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.AccountIdentifiers found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.AcknowledgePurchaseParams found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.AcknowledgePurchaseParams$Builder found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.AcknowledgePurchaseResponseListener found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingClient found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingClient$BillingResponseCode found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingClient$Builder found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingClient$FeatureType found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingClient$SkuType found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingClientImpl found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingClientImpl$zza found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingClientImpl$zzb found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingClientStateListener found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingFlowParams found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingFlowParams$Builder found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingFlowParams$ProrationMode found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingResult found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.BillingResult$Builder found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.ConsumeParams found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.ConsumeParams$Builder found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.ConsumeResponseListener found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.PriceChangeConfirmationListener found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.PriceChangeFlowParams found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.PriceChangeFlowParams$Builder found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.ProxyBillingActivity found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.Purchase found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.Purchase$PurchaseState found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.Purchase$PurchasesResult found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.PurchaseHistoryRecord found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.PurchaseHistoryResponseListener found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.PurchasesUpdatedListener found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.SkuDetails found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.SkuDetails$zza found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.SkuDetailsParams found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.SkuDetailsParams$Builder found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.SkuDetailsResponseListener found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zza found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzaa found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzab found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzac found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzad found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzae found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzaf found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzag found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzah found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzai found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzaj found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzak found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzal found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzam found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzan found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzao found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzap found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzap$zza found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzb found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzb$zza found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzc found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzd found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zze found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzf found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzg found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billing-3.0.1-runtime.jar (:com.android.billingclient.billing-3.0.1:)
  Duplicate class com.android.billingclient.api.zzh found in modules com.android.billingclient.billing-3.0.1-runtime.jar (:billing-3.0.1:) and com.android.billingclient.billi<message truncated>

The Gradle does not download along with the Unity version? Could it be that this is a Bug?

Thanks everyone for the support

Is it possible to get support?

Uncheck/check again- gradle installed with unity in preferences & restarting unity worked for me

Hi, I solved this by changing this line here in the build.gradle file (inside my project)
implementation fileTree(dir: 'libs', include: ['.jar','.aar'])
to
implementation fileTree(dir: 'libs', include: ['.jar','/Plugins/Android/*.aar'])

And also deleting one of all the duplications in this file...

8153903--1059419--upload_2022-5-24_17-43-29.png