CommandInvokationFailure: Gradle build failed.
C:\Program Files\Unity\Hub\Editor\2022.3.43f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2022.3.43f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-7.5.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "bundleRelease"
Environment Variables:
SHIM_MCCOMPAT = 0x810000001
PROCESSOR_ARCHITECTURE = AMD64
TEMP = C:\Users\MONSTER\AppData\Local\Temp
AMPLITUDE_API_KEY_YELLOWBUCKET_DEV = 48835b4d1f5e342aefe5f016324d296a
ANDROID_NDK_ROOT = C:\Program Files\Unity\Hub\Editor\2022.3.43f1\Editor\Data\PlaybackEngines\AndroidPlayer\NDK
DriverData = C:\Windows\System32\Drivers\DriverData
USERDOMAIN = MONSTER
CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
COMPUTERNAME = MONSTER
DEBUG_ENV_VAR = UnityHub
LOGONSERVER = \\MONSTER
AMPLITUDE_TOKEN_GREENBUCKET_PROD = ZpUcbAdZXJYzNSoHsAWtL_s_JppwWid9
NDK_ROOT = C:\Program Files (x86)\Android\android-sdk\ndk-bundle
PUBLIC = C:\Users\Public
ProgramData = C:\ProgramData
SESSIONNAME = Console
AMPLITUDE_TOKEN_YELLOWBUCKET_PROD = UYDQtPOw83dIfVy3SrW5oMyo7ru4PRkV
asl.log = Destination=file
NVIDIAWHITELISTED = 0x01
ADSK_CLM_WPAD_PROXY_CHECK = FALSE
ANDROID_HOME = C:\Users\MONSTER\AppData\Local\Android\Sdk
APPDATA = C:\Users\MONSTER\AppData\Roaming
SystemRoot = C:\WINDOWS
windir = C:\WINDOWS
AMPLITUDE_API_KEY_REDBUCKET_DEV = 46b8b46515e7632fc42a504b72e05fd0
ProgramFiles(x86) = C:\Program Files (x86)
ProgramW6432 = C:\Program Files
AMPLITUDE_API_KEY_GREENBUCKET_PROD = c86fea37a9e1d3f0878b96e15b111c7c
OS = Windows_NT
PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 94 Stepping 3, GenuineIntel
HOMEPATH = \Users\MONSTER
TMPDIR = C:\Users\Public\Documents\Wondershare\CreatorTemp
AMPLITUDE_TOKEN_REDBUCKET_DEV = U4PSN7S7PuYVRODivvdcFwbu8R6IHGqa
CHROME_CRASHPAD_PIPE_NAME = \\.\pipe\crashpad_16032_KIIKLTHJHTQEQOWD
PROCESSOR_LEVEL = 6
ANDROID_SDK_ROOT = C:\Users\MONSTER\AppData\Local\Android\Sdk
CommonProgramFiles = C:\Program Files\Common Files
ZES_ENABLE_SYSMAN = 1
ANT_ROOT = D:\Ali\MERAKLA.Com\cocos2d-x-3.17\apache-ant-1.10.5\bin
OPENSSL_CONF = C:\OpenSSL-Win32\bin\openssl.cfg
USERDOMAIN_ROAMINGPROFILE = MONSTER
JAVA_HOME = C:\Program Files\Unity\Hub\Editor\2022.3.43f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
ProgramFiles = C:\Program Files
CommonProgramW6432 = C:\Program Files\Common Files
COCOS_X_ROOT = D:\Ali\MERAKLA.Com\cocos2d-x-3.17
AMPLITUDE_TOKEN_YELLOWBUCKET_DEV = wKi8foVigDditGFvmZewRFWsEbX9Y0YO
AMPLITUDE_API_KEY_GREENBUCKET_DEV = 3ded2a762163603391a425f688f990c8
FPS_BROWSER_USER_PROFILE_STRING = Default
AMPLITUDE_API_KEY_REDBUCKET_PROD = ca12bb461ea96f9bdf5df4ded7d52994
HOMEDRIVE = C:
AMPLITUDE_API_KEY_STAGING = 83ee04fccc67e4fcc7dd527c4c6f1e21
USERNAME = MONSTER
OneDrive = C:\Users\MONSTER\OneDrive
AMPLITUDE_API_KEY_YELLOWBUCKET_PROD = e03a9bbe92dc38a88cdb068d24c65b46
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
AMPLITUDE_TOKEN_REDBUCKET_PROD = jTIgKs5KTZOjiqEEVdZFbgo_VRhABduL
__PSLockDownPolicy = 0
NUMBER_OF_PROCESSORS = 8
GTK_BASEPATH = C:\Program Files (x86)\GtkSharp\2.12\
AMPLITUDE_TOKEN_GREENBUCKET_DEV = 84H2gMm_FJzhr3mBaX1lM1JVukmCM7d9
AMPLITUDE_DEPLOYMENT_KEY_RED_BUCKET_DEV = client-wbjHYrmeSR87GmWOE7LDpf7sUySOIKHm
MOZ_PLUGIN_PATH = C:\Program Files (x86)\Foxit Software\Foxit Reader\plugins\
ComSpec = C:\WINDOWS\system32\cmd.exe
ORIGINAL_XDG_CURRENT_DESKTOP = undefined
COCOS_TEMPLATES_ROOT = D:\Ali\MERAKLA.Com\cocos2d-x-3.17\cocos2d-x-3.17\templates
PROCESSOR_REVISION = 5e03
COCOS_CONSOLE_ROOT = D:\Ali\MERAKLA.Com\cocos2d-x-3.17\cocos2d-x-3.17\tools\cocos2d-console\bin
AMPLITUDE_DEPLOYMENT_KEY_RED_BUCKET_PROD = client-zH8Y7OK1i331EKuG77C6UxN8ygcM6LzS
TMP = C:\Users\MONSTER\AppData\Local\Temp
PT7HOME = C:\Program Files\Cisco Packet Tracer 7.0
SystemDrive = C:
AMPLITUDE_API_KEY = 28f3cae0b33b8b3702120c9ed1a935aa
FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer
SENTRY_ACCESS_TOKEN = 3df78d9e53f8456aa90fbae044ce1a6261421ab1d0014674bc2e933477289017
ALLUSERSPROFILE = C:\ProgramData
Path = C:\Program Files\Eclipse Adoptium\jdk-11.0.20.101-hotspot\bin;C:\Program Files (x86)\Cuminas\Document Express DjVu Plug-in\;C:\Program Files\ImageMagick-7.0.8-Q16;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Windows Live\Shared;C:\WINDOWS\System32\OpenSSH\;C:\Python\Python37;C:\Python\Python37\Scripts;C:\Program Files\Microsoft VS Code\bin;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\PuTTY\;C:\Program Files (x86)\Microsoft Emulator Manager\1.0\;C:\Program Files\Git\cmd;C:\Program Files (x86)\QuickTime\QTSystem\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\ZeroTier\One\;C:\Program Files\nodejs\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;D:\Ali\MERAKLA.Com\cocos2d-x-3.17\cocos2d-x-3.17\templates;D:\Ali\MERAKLA.Com\cocos2d-x-3.17\cocos2d-x-3.17\tools\cocos2d-console\bin;C:\Users\MONSTER\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\mingw-w64\x86_64-8.1.0-win32-seh-rt_v6-rev0\mingw64\bin;";C:\Program Files (x86)\Android\android-sdk\tools;C:\Program Files (x86)\Android\android-sdk\platform-tools";C:\Users\MONSTER\.dotnet\tools;C:\Users\MONSTER\AppData\Local\atom\bin;C:\Users\MONSTER\AppData\Local\Microsoft\WindowsApps;C:\Users\MONSTER\AppData\Roaming\npm;
PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
LOCALAPPDATA = C:\Users\MONSTER\AppData\Local
USERPROFILE = C:\Users\MONSTER
WOOTRIC_CLIENT_TOKEN = NPS-aa8be4c3
stderr[
FAILURE: Build completed with 2 failures.
1: Task 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.2.0-runtime (androidx.core:core:1.2.0) and jetified-androidx.core.core-1.2.0-runtime (:androidx.core.core-1.2.0:)
Duplicate class android.support.v4.graphics.drawable.IconCompatParcelizer found in modules core-1.2.0-runtime (androidx.core:core:1.2.0) and jetified-androidx.core.core-1.2.0-runtime (:androidx.core.core-1.2.0:)
Duplicate class android.support.v4.os.ResultReceiver found in modules core-1.2.0-runtime (androidx.core:core:1.2.0) and jetified-androidx.core.core-1.2.0-runtime (:androidx.core.core-1.2.0:)
Duplicate class android.support.v4.os.ResultReceiver$1 found in modules core-1.2.0-runtime (androidx.core:core:1.2.0) and jetified-androidx.core.core-1.2.0-runtime (:androidx.core.core-1.2.0:)
Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules core-1.2.0-runtime (androidx.core:core:1.2.0) and jetified-androidx.core.core-1.2.0-runtime (:androidx.core.core-1.2.0:)
Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules core-1.2.0-runtime (androidx.core:core:1.2.0) and jetified-androidx.core.core-1.2.0-runtime (:androidx.core.core-1.2.0:)
Duplicate class androidx.annotation.AnimRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.AnimatorRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.AnyRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.AnyThread found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.ArrayRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.AttrRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.BinderThread found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.BoolRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.CallSuper found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.CheckResult found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.ColorInt found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.ColorLong found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.ColorRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.ContentView found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.DimenRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.Dimension found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.DrawableRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.FloatRange found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.FontRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.FractionRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.GuardedBy found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.HalfFloat found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.IdRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.InspectableProperty found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.InspectableProperty$EnumEntry found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.InspectableProperty$FlagEntry found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.InspectableProperty$ValueType found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.IntDef found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.IntRange found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.IntegerRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.InterpolatorRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.Keep found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.LayoutRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.LongDef found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.MainThread found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.MenuRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.NavigationRes found in modules annotation-1.3.0 (androidx.annotation:annotation:1.3.0) and jetified-androidx.annotation.annotation-1.1.0 (androidx.annotation.annotation-1.1.0.jar)
Duplicate class androidx.annotation.NonNull found in modules annotation-1.<message truncated>
Try
Assets
–> Mobile Dependency Resolver
–> Android Resolver
→ Delete Libraries
very thanks bro…