Duplicate class errors in Android build with Unity 2022.3.37f1 and IAP 4.12.0

Google requires upgrading to Google Play Billing Library 6.0.1, which requires IAP 4.12.0. However, after this upgrade, Android builds fail with multiple errors.

  • There is a warning:

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 is strange because, per Gradle for Android, Unity 2022.3.37f1 and higher is supposed to use Android Gradle plugin version 7.4.2. There are no other Unity versions on my system.

  • There are several errors of the form:

Exception while marshalling D:\Program Files\Unity Hub\Editor\2022.3.37f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\32.0.0\package.xml. Probably the SDK is read-only

  • There are numerous errors of the form

Duplicate class android.support.v4.app.RemoteActionCompatParcelizer found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and jetified-androidx.core.core-1.9.0-runtime (:androidx.core.core-1.9.0:)

that cite a conflict between core:1.50 and core-1.9.0. This is strange because core:1.5.0 is nowhere on my system.

I’ve found suggested workarounds on other posts, such as enabling custom gradle templates and using External Dependency Manager to force resolution, but nothing makes any difference. I have also tried deleting and rebuilding the Library directory.

Downgrading from IAP 4.1.2 works, but this loses the upgrade to Google Play Billing that’s required by August 31.

Here is the full console log:

PreBuild
UnityEngine.Debug:Log (object)
ImaginationOverflow.UniversalDeepLinking.Editor.PreBuild.PreBuildProcess:OnPreprocessBuild (UnityEditor.BuildTarget,string) (at Assets/Plugins/ImaginationOverflow/UniversalDeepLinking/Editor/PreBuild/PreBuildProcess.cs:25)
ImaginationOverflow.UniversalDeepLinking.Editor.PreBuild.PreBuildProcess:OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport) (at Assets/Plugins/ImaginationOverflow/UniversalDeepLinking/Editor/PreBuild/PreBuildProcess.cs:20)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Plugin 'Assets/Plugins/Facepunch.Steamworks/redistributable_bin/linux64/libsteam_api.so' doesn't have CPU architecture set, since it's a native plugin, valid architecture is required, skipping.
System.Linq.Enumerable/WhereEnumerableIterator`1<object>:MoveNext ()
Bee.BeeDriver.BeeDriver:WriteDataForBuildProgram (Bee.BeeDriver.InternalState,System.Threading.Tasks.TaskCompletionSource`1<int>)
Bee.BeeDriver.BeeDriver/<>c__DisplayClass0_0:<BuildAsync>g__WriteData|0 ()
Bee.BeeDriver.BeeDriver:BuildAsync (Bee.BeeDriver.BuildRequest,System.Threading.CancellationToken)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Plugin 'Assets/Plugins/Facepunch.Steamworks/redistributable_bin/steam_api.lib' is not supported on Android, please deselect it in Plugin Inspector
System.Linq.Enumerable/WhereEnumerableIterator`1<object>:MoveNext ()
Bee.BeeDriver.BeeDriver:WriteDataForBuildProgram (Bee.BeeDriver.InternalState,System.Threading.Tasks.TaskCompletionSource`1<int>)
Bee.BeeDriver.BeeDriver/<>c__DisplayClass0_0:<BuildAsync>g__WriteData|0 ()
Bee.BeeDriver.BeeDriver:BuildAsync (Bee.BeeDriver.BuildRequest,System.Threading.CancellationToken)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Plugin 'Assets/Plugins/Facepunch.Steamworks/redistributable_bin/win64/steam_api64.lib' is not supported on Android, please deselect it in Plugin Inspector
System.Linq.Enumerable/WhereEnumerableIterator`1<object>:MoveNext ()
Bee.BeeDriver.BeeDriver:WriteDataForBuildProgram (Bee.BeeDriver.InternalState,System.Threading.Tasks.TaskCompletionSource`1<int>)
Bee.BeeDriver.BeeDriver/<>c__DisplayClass0_0:<BuildAsync>g__WriteData|0 ()
Bee.BeeDriver.BeeDriver:BuildAsync (Bee.BeeDriver.BuildRequest,System.Threading.CancellationToken)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 34

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

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

The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 34
Exception while marshalling D:\Program Files\Unity Hub\Editor\2022.3.37f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\32.0.0\package.xml. Probably the SDK is read-only
Exception while marshalling D:\Program Files\Unity Hub\Editor\2022.3.37f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
Exception while marshalling D:\Program Files\Unity Hub\Editor\2022.3.37f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-33\package.xml. Probably the SDK is read-only
Exception while marshalling D:\Program Files\Unity Hub\Editor\2022.3.37f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-34\package.xml. Probably the SDK is read-only
Exception while marshalling D:\Program Files\Unity Hub\Editor\2022.3.37f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\package.xml. Probably the SDK is read-only
> Task :launcher:preBuild UP-TO-DATE
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :launcher:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:mobilenotifications.androidlib:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :launcher:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:IronSource.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:mobilenotifications.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:mergeReleaseNativeLibs UP-TO-DATE
> Task :launcher:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:mobilenotifications.androidlib:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:generateReleaseResources UP-TO-DATE
> Task :launcher:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:stripReleaseDebugSymbols UP-TO-DATE
> Task :launcher:generateReleaseResValues UP-TO-DATE
> Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
> Task :launcher:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:packageReleaseResources UP-TO-DATE
> Task :unityLibrary:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
> Task :launcher:extractProguardFiles UP-TO-DATE
> Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:mobilenotifications.androidlib:packageReleaseResources UP-TO-DATE
> Task :launcher:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:packageReleaseResources UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:mobilenotifications.androidlib:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:mergeReleaseNativeLibs NO-SOURCE
> Task :unityLibrary:IronSource.androidlib:mergeReleaseNativeLibs NO-SOURCE
> Task :unityLibrary:mobilenotifications.androidlib:stripReleaseDebugSymbols NO-SOURCE
> Task :unityLibrary:IronSource.androidlib:stripReleaseDebugSymbols NO-SOURCE
> Task :unityLibrary:mobilenotifications.androidlib:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:copyReleaseJniLibsProjectAndLocalJars UP-TO-DATE
> Task :unityLibrary:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:extractReleaseAnnotations UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:extractReleaseAnnotations UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:mergeReleaseConsumerProguardFiles UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:mergeReleaseConsumerProguardFiles UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:IronSource.androidlib:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:mobilenotifications.androidlib:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:packageReleaseAssets UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:packageReleaseAssets UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:prepareReleaseArtProfile UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:mobilenotifications.androidlib:prepareReleaseArtProfile UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:extractProguardFiles UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:generateReleaseLibraryProguardRules UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:IronSource.androidlib:mergeReleaseJavaResource UP-TO-DATE
> Task :unityLibrary:mobilenotifications.androidlib:mergeReleaseJavaResource UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:syncReleaseLibJars UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:writeReleaseAarMetadata UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:bundleReleaseLocalLintAar UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:compileReleaseLibraryResources UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:bundleLibResRelease NO-SOURCE
> Task :unityLibrary:IronSource.androidlib:bundleLibRuntimeToJarRelease UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:createFullJarRelease UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:writeReleaseLintModelMetadata UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:copyReleaseJniLibsProjectOnly UP-TO-DATE
> Task :unityLibrary:extractReleaseAnnotations UP-TO-DATE
> Task :launcher:checkReleaseDuplicateClasses FAILED
> Task :unityLibrary:mobilenotifications.androidlib:minifyReleaseWithR8

> Task :unityLibrary:compileReleaseJavaWithJavac

> Task :launcher:desugarReleaseFileDependencies

> Task :unityLibrary:compileReleaseJavaWithJavac
73 actionable tasks: 4 executed, 69 up-to-date

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

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

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

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

Note: D:\Wonderland\Game\Wonderland - R3.0\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: D:\Wonderland\Game\Wonderland - R3.0\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\src\main\java\com\unity\androidnotifications\AndroidNotificationCenterExtensions.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

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.RemoteActionCompatParcelizer found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and jetified-androidx.core.core-1.9.0-runtime (:androidx.core.core-1.9.0:)
     Duplicate class android.support.v4.graphics.drawable.IconCompatParcelizer found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and jetified-androidx.core.core-1.9.0-runtime (:androidx.core.core-1.9.0:)
     Duplicate class android.support.v4.os.ResultReceiver found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and jetified-androidx.core.core-1.9.0-runtime (:androidx.core.core-1.9.0:)
     Duplicate class android.support.v4.os.ResultReceiver$1 found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and jetified-androidx.core.core-1.9.0-runtime (:androidx.core.core-1.9.0:)
     Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and jetified-androidx.core.core-1.9.0-runtime (:androidx.core.core-1.9.0:)
     Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and jetified-androidx.core.core-1.9.0-runtime (:androidx.core.core-1.9.0:)
     Duplicate class androidx.activity.ActivityViewModelLazyKt found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.ActivityViewModelLazyKt$viewModels$1 found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.ActivityViewModelLazyKt$viewModels$factoryPromise$1 found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.Api19Impl found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.Api26Impl found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.Cancellable found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ComponentActivity found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ComponentActivity$1 found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ComponentActivity$2 found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ComponentActivity$2$1 found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ComponentActivity$2$2 found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ComponentActivity$3 found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ComponentActivity$4 found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ComponentActivity$5 found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ComponentActivity$Api19Impl found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ComponentActivity$NonConfigurationInstances found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ImmLeaksCleaner found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.OnBackPressedCallback found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.OnBackPressedDispatcher found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.OnBackPressedDispatcher$LifecycleOnBackPressedCancellable found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.OnBackPressedDispatcher$OnBackPressedCancellable found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.OnBackPressedDispatcherKt found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.OnBackPressedDispatcherKt$addCallback$callback$1 found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.OnBackPressedDispatcherOwner found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.PipHintTrackerKt found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.PipHintTrackerKt$trackPipAnimationHintView$flow$1 found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.PipHintTrackerKt$trackPipAnimationHintView$flow$1$1 found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.PipHintTrackerKt$trackPipAnimationHintView$flow$1$attachStateChangeListener$1 found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.contextaware.ContextAware found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.contextaware.ContextAwareHelper found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.contextaware.ContextAwareKt found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.contextaware.ContextAwareKt$withContextAvailable$2$1 found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.contextaware.ContextAwareKt$withContextAvailable$2$listener$1 found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.contextaware.OnContextAvailableListener found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.result.ActivityResult found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.result.ActivityResult$1 found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.result.ActivityResultCallback found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.result.ActivityResultCaller found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.result.ActivityResultCallerKt found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.result.ActivityResultCallerLauncher found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.result.ActivityResultCallerLauncher$resultContract$2 found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.result.ActivityResultCallerLauncher$resultContract$2$1 found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.result.ActivityResultKt found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.result.ActivityResultLauncher found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.result.ActivityResultLauncherKt found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.result.ActivityResultRegistry found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.result.ActivityResultRegistry$1 found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.result.ActivityResultRegistry$2 found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.result.ActivityResultRegistry$3 found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.result.ActivityResultRegistry$CallbackAndContract found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.result.ActivityResultRegistry$LifecycleContainer found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.result.ActivityResultRegistryOwner found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.result.IntentSenderRequest found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.result.IntentSenderRequest$Builder found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.result.contract.ActivityResultContract found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.result.contract.ActivityResultContract$SynchronousResult found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.a<message truncated>
CommandInvokationFailure: Gradle build failed. 
D:\Program Files\Unity Hub\Editor\2022.3.37f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "D:\Program Files\Unity Hub\Editor\2022.3.37f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-7.2.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

Environment Variables:
PROCESSOR_ARCHITECTURE = AMD64
CPGMX86 = C:\Program Files (x86)
DPGMDATA = D:\ProgramData
ANDROID_NDK_ROOT = D:\Program Files\Unity Hub\Editor\2022.3.37f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK
DriverData = C:\Windows\System32\Drivers\DriverData
USERDOMAIN = OFFICE
CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
COMPUTERNAME = OFFICE
DEBUG_ENV_VAR = UnityHub
LOGONSERVER = \\OFFICE
AMPLITUDE_TOKEN_GREENBUCKET_PROD = ZpUcbAdZXJYzNSoHsAWtL_s_JppwWid9
PUBLIC = C:\Users\Public
ProgramData = C:\ProgramData
SESSIONNAME = Console
AMPLITUDE_TOKEN_YELLOWBUCKET_PROD = UYDQtPOw83dIfVy3SrW5oMyo7ru4PRkV
asl.log = Destination=file
USERPROFILE = C:\Users\david
UNITY_VERSION = 2022.3.15f1
GOOGLE_APPLICATION_CREDENTIALS = C:\Users\david\OneDrive\Desktop\Unity Dev\Google Cloud API key.json
APPDATA = C:\Users\david\AppData\Roaming
SystemRoot = C:\WINDOWS
windir = C:\WINDOWS
AMPLITUDE_API_KEY_REDBUCKET_DEV = 46b8b46515e7632fc42a504b72e05fd0
ProgramFiles(x86) = C:\Program Files (x86)
configsetroot = C:\WINDOWS\ConfigSetRoot
CWIN = C:\Windows
ProgramW6432 = C:\Program Files
INTEL_DEV_REDIST = C:\Program Files (x86)\Common Files\Intel\Shared Libraries\
OS = Windows_NT
WINS32 = C:\Windows\System32
DPGM = D:\Program Files
HOMEPATH = \Users\david
FPS_BROWSER_USER_PROFILE_STRING = Default
OneDriveCommercial = D:\OneDrive - Bellevue College
INTEL1 = C:\PROGRA~1\Intel\Intel(R) Management Engine Components
PYTH36 = D:\ProgramData\Python36
MIC_LD_LIBRARY_PATH = C:\Program Files (x86)\Common Files\Intel\Shared Libraries\compiler\lib\intel64_win_mic
AMPLITUDE_TOKEN_REDBUCKET_DEV = U4PSN7S7PuYVRODivvdcFwbu8R6IHGqa
PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
CommonProgramFiles = C:\Program Files\Common Files
TEMP = C:\Users\david\AppData\Local\Temp
CPGM = C:\Program Files
USERDOMAIN_ROAMINGPROFILE = OFFICE
JAVA_HOME = D:\Program Files\Unity Hub\Editor\2022.3.37f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
ProgramFiles = C:\Program Files
CommonProgramW6432 = C:\Program Files\Common Files
JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8
AMPLITUDE_TOKEN_YELLOWBUCKET_DEV = wKi8foVigDditGFvmZewRFWsEbX9Y0YO
AMPLITUDE_API_KEY_GREENBUCKET_DEV = 3ded2a762163603391a425f688f990c8
AMPLITUDE_API_KEY_REDBUCKET_PROD = ca12bb461ea96f9bdf5df4ded7d52994
HOMEDRIVE = C:
AMPLITUDE_API_KEY_STAGING = 83ee04fccc67e4fcc7dd527c4c6f1e21
ADSK_3DSMAX_x64_2021 = D:\Program Files\Autodesk\3ds Max 2021\
USERNAME = david
OneDrive = D:\OneDrive - Bellevue College
AMPLITUDE_API_KEY_YELLOWBUCKET_PROD = e03a9bbe92dc38a88cdb068d24c65b46
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
AMPLITUDE_TOKEN_REDBUCKET_PROD = jTIgKs5KTZOjiqEEVdZFbgo_VRhABduL
NUMBER_OF_PROCESSORS = 12
VBOX_MSI_INSTALL_PATH = D:\Program Files\Oracle\VirtualBox\
AMPLITUDE_TOKEN_GREENBUCKET_DEV = 84H2gMm_FJzhr3mBaX1lM1JVukmCM7d9
AMPLITUDE_DEPLOYMENT_KEY_RED_BUCKET_DEV = client-wbjHYrmeSR87GmWOE7LDpf7sUySOIKHm
PROCESSOR_LEVEL = 6
AWS_REGION = us-east-1
AMPLITUDE_API_KEY_GREENBUCKET_PROD = c86fea37a9e1d3f0878b96e15b111c7c
ComSpec = C:\WINDOWS\system32\cmd.exe
ORIGINAL_XDG_CURRENT_DESKTOP = undefined
UNITY_EDITOR = D:\Program Files\Unity Hub\Editor\2022.3.15f1\Editor
PROCESSOR_REVISION = 9e0a
FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer
CHROME_CRASHPAD_PIPE_NAME = \\.\pipe\crashpad_21192_GEUKXJNUBAWKQEHZ
AWS_SECRET_ACCESS_KEY = ADzj4/aFHfIUktQFFY1B7aIlTmPWj+czgFxZB++8
AMPLITUDE_DEPLOYMENT_KEY_RED_BUCKET_PROD = client-zH8Y7OK1i331EKuG77C6UxN8ygcM6LzS
TMP = C:\Users\david\AppData\Local\Temp
SystemDrive = C:
AMPLITUDE_API_KEY = 28f3cae0b33b8b3702120c9ed1a935aa
INTEL2 = C:\PROGRA~2\Intel\Intel(R) Management Engine Components
OneDriveConsumer = C:\Users\david\OneDrive
SENTRY_ACCESS_TOKEN = 3df78d9e53f8456aa90fbae044ce1a6261421ab1d0014674bc2e933477289017
AMPLITUDE_API_KEY_YELLOWBUCKET_DEV = 48835b4d1f5e342aefe5f016324d296a
ALLUSERSPROFILE = C:\ProgramData
Path = D:\Program Files\Python312\Scripts\;D:\Program Files\Python312\;C:\PROGRA~2\Razer Chroma SDK\bin;C:\PROGRA~1\Razer Chroma SDK\bin;C:\PROGRA~2\Razer\ChromaBroadcast\bin;C:\PROGRA~1\Razer\ChromaBroadcast\bin;C:\PROGRA~1\AdoptOpenJDK\jdk-8.0.232.09-hotspot\bin;D:\ProgramData\Python36\;D:\ProgramData\Python36\DLLs\;D:\ProgramData\Python36\Scripts\;D:\ProgramData\Python36\Tools\;D:\ProgramData\Python36\Tools\ninja\;C:\Perl64\site\bin;C:\Perl64\bin;C:\PROGRA~2\Common Files\Intel\Shared Libraries\redist\intel64_win\compiler;C:\PROGRA~2\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\PROGRA~2\Intel\Intel(R) Management Engine Components\iCLS\;C:\PROGRA~1\Intel\Intel(R) Management Engine Components\iCLS\;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\PROGRA~2\Intel\Intel(R) Management Engine Components\DAL;C:\PROGRA~1\Intel\Intel(R) Management Engine Components\DAL;C:\PROGRA~2\Intel\Intel(R) Management Engine Components\IPT;C:\PROGRA~1\Intel\Intel(R) Management Engine Components\IPT;C:\PROGRA~1\Intel\WiFi\bin\;C:\PROGRA~1\Common Files\Intel\WirelessCommon\;C:\bin;D:\Program Files\OpenSSL-Win64\bin;C:\cygwin64\bin;C:\PROGRA~2\Vim\vim81;C:\PROGRA~2\Windows Kits\10\Windows Performance Toolkit\;D:\GitHub\apache-maven-3.6.1\bin;D:\Java\jdk-12.0.1\bin;C:\PROGRA~1\nodejs\;C:\PROGRA~2\GnuWin32\bin;D:\Program Files\mosquitto;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\PROGRA~1\Common Files\Autodesk Shared\;C:\PROGRA~1\Microsoft SQL Server\120\Tools\Binn\;D:\Program Files\Unity Hub\Editor\2022.3.15f1\Editor;D:\Program Files\Unity Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin;D:\Program Files\Unity Hub\Editor\2022.3.15f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools;C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\PROGRA~1\Calibre2\;D:\Program Files\Amazon\AWSCLIV2\;C:\PROGRA~2\NVIDIA Corporation\PhysX\Common;C:\PROGRA~1\NVIDIA Corporation\NVIDIA NvDLISR;C:\PROGRA~1\dotnet\;D:\Program Files\Racket;C:\Program Files\dotnet\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;D:\Program Files\Python\Python37\Scripts\;D:\Program Files\Python\Python37\;C:\Users\david\AppData\Local\Microsoft\WindowsApps;C:\Users\david\AppData\Roaming\npm;C:\Users\david\AppData\Local\GitHubDesktop\bin;D:\Program Files\Microsoft VS Code\bin;D:\Program Files\Git\cmd;C:\Users\david\.dotnet\tools
PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
AWS_ACCESS_KEY_ID = AKIASLV2VKW3Y6F6AU2E
LOCALAPPDATA = C:\Users\david\AppData\Local
DEEPL_AUTH_KEY = c21f0790-a453-4f33-17c8-413ab8de117b:fx
WOOTRIC_CLIENT_TOKEN = NPS-aa8be4c3


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

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

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

Note: D:\Wonderland\Game\Wonderland - R3.0\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: D:\Wonderland\Game\Wonderland - R3.0\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\src\main\java\com\unity\androidnotifications\AndroidNotificationCenterExtensions.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

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.RemoteActionCompatParcelizer found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and jetified-androidx.core.core-1.9.0-runtime (:androidx.core.core-1.9.0:)
     Duplicate class android.support.v4.graphics.drawable.IconCompatParcelizer found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and jetified-androidx.core.core-1.9.0-runtime (:androidx.core.core-1.9.0:)
     Duplicate class android.support.v4.os.ResultReceiver found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and jetified-androidx.core.core-1.9.0-runtime (:androidx.core.core-1.9.0:)
     Duplicate class android.support.v4.os.ResultReceiver$1 found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and jetified-androidx.core.core-1.9.0-runtime (:androidx.core.core-1.9.0:)
     Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and jetified-androidx.core.core-1.9.0-runtime (:androidx.core.core-1.9.0:)
     Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and jetified-androidx.core.core-1.9.0-runtime (:androidx.core.core-1.9.0:)
     Duplicate class androidx.activity.ActivityViewModelLazyKt found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.ActivityViewModelLazyKt$viewModels$1 found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.ActivityViewModelLazyKt$viewModels$factoryPromise$1 found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.Api19Impl found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.Api26Impl found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.Cancellable found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ComponentActivity found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ComponentActivity$1 found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ComponentActivity$2 found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ComponentActivity$2$1 found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ComponentActivity$2$2 found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ComponentActivity$3 found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ComponentActivity$4 found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ComponentActivity$5 found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ComponentActivity$Api19Impl found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ComponentActivity$NonConfigurationInstances found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.ImmLeaksCleaner found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.OnBackPressedCallback found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.OnBackPressedDispatcher found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.OnBackPressedDispatcher$LifecycleOnBackPressedCancellable found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.OnBackPressedDispatcher$OnBackPressedCancellable found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.OnBackPressedDispatcherKt found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.OnBackPressedDispatcherKt$addCallback$callback$1 found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.OnBackPressedDispatcherOwner found in modules jetified-activity-1.3.1-runtime (androidx.activity:activity:1.3.1) and jetified-androidx.activity.activity-1.7.1-runtime (:androidx.activity.activity-1.7.1:)
     Duplicate class androidx.activity.PipHintTrackerKt found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.PipHintTrackerKt$trackPipAnimationHintView$flow$1 found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate class androidx.activity.PipHintTrackerKt$trackPipAnimationHintView$flow$1$1 found in modules jetified-activity-ktx-1.3.1-runtime (androidx.activity:activity-ktx:1.3.1) and jetified-androidx.activity.activity-ktx-1.7.1-runtime (:androidx.activity.activity-ktx-1.7.1:)
     Duplicate clas<message truncated>
Build completed with a result of 'Failed' in 54 seconds (54243 ms)
3 errors
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)



Unity responded to my problem report. It turns out that this is a known issue that occurs when IAP 4.12.x is used in a project that includes the Facebook SDK. There is a previously reported issue [Android] Build Fails With Error “A Failure Occurred While Executing Com.Android.Build.Gradle.Internal.Tasks.Checkduplicatesrunnable” when using In-App Purchasing and Facebook SDK. If you are experiencing this problem, please upvote this issue.

Hi I managed to fix it after 1 week.

  1. Make backup of your project folder.
  2. I downloaded the External-dependency-manager package from GitHub.
  3. First close your project go to assets folder, delete the MobileDependancyResolver folder and MobileDependancyResolver.meta.
  4. Also delete whole also Library folder in your project folder!!!.
  5. Then open Unity you need to switch back to Android platform
  6. Install the External-dependency-manager from disk wherever you unpack the files from github the package json is in upm folder. Go to Unity Package Manager click + icon install package from disk and select package json in upm folder.
  7. Go to assets in top menu click External-dependency-manager → Android Resolver → Force Resolve.
  8. Then you can build…
  9. Then click assets → External

Upgrading EDM4U to the latest and changing Target Min API to 24 fixed all my issues!

Thanks for the suggestion. Unfortunately, it didn’t work for me. I installed the latest External Dependency Manager and rebuilt the Library folder, but the Android build still failed with many duplicate class errors, this time citing androidx.core:core:1.2.0. For example:

Duplicate class android.support.v4.app.RemoteActionCompatParcelizer found in modules core-1.2.0-runtime (androidx.core:core:1.2.0) and jetified-androidx.core.core-1.9.0-runtime (:androidx.core.core-1.9.0:)

There was also a new warning:

WARNING: [Processor] Library ‘D:\Game\Library\Bee\Android\Prj\IL2CPP\Gradle\unityLibrary\libs\androidx.core.core-1.9.0.aar’ contains references to both AndroidX and old support library. This seems like the library is partially migrated. Jetifier will try to rewrite the library anyway.
Example of androidX reference: ‘androidx/versionedparcelable/VersionedParcel’
Example of support library reference: ‘android/support/v4/app/RemoteActionCompatParcelizer’

I have found a workaround for the Google Play Billing library issue by downgrading to IAP 4.11.0 and replacing its embedded billing library with billing-6.2.1.aar. This has to be done after a downgrade because IAP 4.12.x no longer embeds a Google library

This solution worked for me, if it works for you, share it in the other forums to help everyone.

This version is also causing conflicts with the Ironsource Levelplay package

Hey @RSH1,

Have you tried the solutions in the pinned thread here?