Unity 2020.3.48f1 Target API 33 -> 34 Failed ?

I’m having trouble building and upgrading API 33 to 34. Previously, with unity version 2020.3.48, I still successfully built API 34, but in the current project, when I build API 33, it still works, but when I upgrade to API 34, it doesn’t work. error again

> Configure project :launcher
WARNING: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8
> Task :unityLibrary:processReleaseManifest
D:\Github\9code\trojan-war\Temp\gradleOut\unityLibrary\src\main\AndroidManifest.xml:30:5-84 Warning:
	Element uses-library#org.apache.http.legacy at AndroidManifest.xml:30:5-84 duplicated with element declared at AndroidManifest.xml:16:5-84

> Task :unityLibrary:IronSource.androidlib:generateReleaseRFile
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseLibraryResources
> Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseLibraryResources
> Task :unityLibrary:EasyMobile.androidlib:compileReleaseLibraryResources
> Task :unityLibrary:IronSource.androidlib:compileReleaseLibraryResources
> Task :unityLibrary:GooglePlayGamesManifest.plugin:compileReleaseLibraryResources
> Task :unityLibrary:parseReleaseLocalResources
> Task :unityLibrary:unity-android-resources:parseReleaseLocalResources
> Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.plugin:generateReleaseBuildConfig
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseBuildConfig
> Task :unityLibrary:EasyMobile.androidlib:generateReleaseBuildConfig
> Task :unityLibrary:GooglePlayGamesManifest.plugin:javaPreCompileRelease
> Task :unityLibrary:FirebaseApp.androidlib:javaPreCompileRelease
> Task :unityLibrary:IronSource.androidlib:generateReleaseBuildConfig
> Task :unityLibrary:EasyMobile.androidlib:javaPreCompileRelease
> Task :unityLibrary:IronSource.androidlib:javaPreCompileRelease
> Task :unityLibrary:unity-android-resources:generateReleaseRFile
> Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseBuildConfig
> Task :unityLibrary:FirebaseCrashlytics.androidlib:javaPreCompileRelease
> Task :unityLibrary:unity-android-resources:compileReleaseLibraryResources
> Task :unityLibrary:unity-android-resources:generateReleaseBuildConfig
> Task :unityLibrary:unity-android-resources:javaPreCompileRelease
> Task :unityLibrary:generateReleaseRFile

> Task :launcher:processReleaseManifest
[:unityLibrary] D:\Github\9code\trojan-war\Temp\gradleOut\unityLibrary\build\intermediates\library_manifest\release\AndroidManifest.xml:113:9-115:40 Warning:
	Element uses-library#org.apache.http.legacy at [:unityLibrary] AndroidManifest.xml:113:9-115:40 duplicated with element declared at [:unityLibrary] AndroidManifest.xml:68:9-70:40

> Task :unityLibrary:prepareLintJarForPublish UP-TO-DATE

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:processReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > AAPT2 aapt2-4.0.1-6197926-windows Daemon #0: Unexpected error during link, attempting to stop daemon.
     This should not happen under normal circumstances, please file an issue if it does.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 8s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

CommandInvokationFailure: Gradle build failed. 
D:\Unity\2020.3.48f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Users\hacke\Downloads\gradle-6.1.1-all\gradle-6.1.1\lib\gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

Environment Variables:
PROCESSOR_ARCHITECTURE = AMD64
JAVA_HOME = D:\Unity\2020.3.48f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
AMPLITUDE_API_KEY_GREENBUCKET_PROD = c86fea37a9e1d3f0878b96e15b111c7c
DriverData = C:\Windows\System32\Drivers\DriverData
USERDOMAIN = DESKTOP-T6OTFMV
CommonProgramFiles(x86) = C:\Program Files (x86)\Common Files
COMPUTERNAME = DESKTOP-T6OTFMV
DEBUG_ENV_VAR = UnityHub
LOGONSERVER = \\DESKTOP-T6OTFMV
AMPLITUDE_TOKEN_GREENBUCKET_PROD = ZpUcbAdZXJYzNSoHsAWtL_s_JppwWid9
AMPLITUDE_API_KEY_YELLOWBUCKET_DEV = 48835b4d1f5e342aefe5f016324d296a
ProgramData = C:\ProgramData
SESSIONNAME = Console
AMPLITUDE_TOKEN_YELLOWBUCKET_PROD = UYDQtPOw83dIfVy3SrW5oMyo7ru4PRkV
ALLUSERSPROFILE = C:\ProgramData
SystemRoot = C:\WINDOWS
windir = C:\WINDOWS
AMPLITUDE_API_KEY_REDBUCKET_DEV = 46b8b46515e7632fc42a504b72e05fd0
ProgramFiles(x86) = C:\Program Files (x86)
ProgramW6432 = C:\Program Files
ChocolateyLastPathUpdate = 133742094152731771
OS = Windows_NT
PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 165 Stepping 3, GenuineIntel
HOMEPATH = \Users\hacke
FPS_BROWSER_USER_PROFILE_STRING = Default
GIT_LFS_PATH = C:\Program Files\Git LFS
ChocolateyInstall = C:\ProgramData\chocolatey
CHROME_CRASHPAD_PIPE_NAME = \\.\pipe\crashpad_23220_CIYSZAQDVTFXWJZF
PROCESSOR_LEVEL = 6
JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8
CommonProgramFiles = C:\Program Files\Common Files
PUBLIC = C:\Users\Public
USERDOMAIN_ROAMINGPROFILE = DESKTOP-T6OTFMV
TEMP = C:\Users\hacke\AppData\Local\Temp
ProgramFiles = C:\Program Files
CommonProgramW6432 = C:\Program Files\Common Files
AMPLITUDE_TOKEN_YELLOWBUCKET_DEV = wKi8foVigDditGFvmZewRFWsEbX9Y0YO
AMPLITUDE_API_KEY_GREENBUCKET_DEV = 3ded2a762163603391a425f688f990c8
AMPLITUDE_API_KEY_REDBUCKET_PROD = ca12bb461ea96f9bdf5df4ded7d52994
HOMEDRIVE = C:
AMPLITUDE_API_KEY_STAGING = 83ee04fccc67e4fcc7dd527c4c6f1e21
USERNAME = BraveHoang
OneDrive = C:\Users\hacke\OneDrive
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
C:\Program Files\nodejs = C:\Program Files\nodejs
NUMBER_OF_PROCESSORS = 8
AMPLITUDE_TOKEN_GREENBUCKET_DEV = 84H2gMm_FJzhr3mBaX1lM1JVukmCM7d9
AMPLITUDE_DEPLOYMENT_KEY_RED_BUCKET_DEV = client-wbjHYrmeSR87GmWOE7LDpf7sUySOIKHm
ComSpec = C:\WINDOWS\system32\cmd.exe
TMP = C:\Users\hacke\AppData\Local\Temp
ORIGINAL_XDG_CURRENT_DESKTOP = undefined
PROCESSOR_REVISION = a503
AMPLITUDE_DEPLOYMENT_KEY_RED_BUCKET_PROD = client-zH8Y7OK1i331EKuG77C6UxN8ygcM6LzS
AMPLITUDE_TOKEN_REDBUCKET_DEV = U4PSN7S7PuYVRODivvdcFwbu8R6IHGqa
SystemDrive = C:
AMPLITUDE_API_KEY = 28f3cae0b33b8b3702120c9ed1a935aa
FPS_BROWSER_APP_PROFILE_STRING = Internet Explorer
OneDriveConsumer = C:\Users\hacke\OneDrive
SENTRY_ACCESS_TOKEN = 3df78d9e53f8456aa90fbae044ce1a6261421ab1d0014674bc2e933477289017
APPDATA = C:\Users\hacke\AppData\Roaming
Path = C:\Python312\Scripts\;C:\Python312\;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\java8path;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;c:\Users\hacke\AppData\Local\Programs\cursor\resources\app\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files\dotnet\;C:\Users\hacke\AppData\Local\Microsoft\WindowsApps;C:\Users\hacke\.dotnet\tools;C:\Users\hacke\AppData\Local\GitHubDesktop\bin;c:\Users\hacke\AppData\Local\Programs\cursor\resources\app\bin;C:\Program Files\Git\cmd;C:\Program Files\Git LFS;C:\Program Files\Cloudflare\Cloudflare WARP\;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\Users\hacke\AppData\Local\Microsoft\WindowsApps;C:\Users\hacke\.dotnet\tools;C:\Users\hacke\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\hacke\AppData\Local\GitHubDesktop\bin;C:\Users\hacke\AppData\Roaming\npm
PSModulePath = C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
LOCALAPPDATA = C:\Users\hacke\AppData\Local
USERPROFILE = C:\Users\hacke
WOOTRIC_CLIENT_TOKEN = NPS-aa8be4c3


stderr[
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/04 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Errors limit exceeded. To receive all errors set com.sun.xml.bind logger to FINEST level.
Warning: unexpected element (uri:"", local:"extension-level"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':launcher:processReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > AAPT2 aapt2-4.0.1-6197926-windows Daemon #0: Unexpected error during link, attempting to stop daemon.
     This should not happen under normal circumstances, please file an issue if it does.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 8s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
]
stdout[

> Configure project :launcher
WARNING: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8

> Task :launcher:preBuild UP-TO-DATE
> Task :launcher:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:EasyMobile.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.plugin:preBuild UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.plugin:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:EasyMobile.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:unity-android-resources:preBuild UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:EasyMobile.androidlib:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:IronSource.androidlib:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:GooglePlayGamesManifest.plugin:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:unity-android-resources:preReleaseBuild UP-TO-DATE
> Task :launcher:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:unity-android-resources:compileReleaseAidl NO-SOURCE
> Task :launcher:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:compileReleaseAidl NO-SOURCE
> Task :launcher:javaPreCompileRelease UP-TO-DATE
> Task :launcher:compileReleaseAidl NO-SOURCE
> Task :launcher:generateReleaseResValues UP-TO-DATE
> Task :launcher:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:EasyMobile.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:GooglePlayGamesManifest.plugin:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:IronSource.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:unity-android-resources:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:EasyMobile.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:GooglePlayGamesManifest.plugin:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:IronSource.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:unity-android-resources:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:EasyMobile.androidlib:generateReleaseResValues
> Task :unityLibrary:EasyMobile.androidlib:generateReleaseResources
> Task :unityLibrary:IronSource.androidlib:generateReleaseResValues
> Task :unityLibrary:unity-android-resources:generateReleaseResValues
> Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseResValues
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResValues
> Task :unityLibrary:GooglePlayGamesManifest.plugin:generateReleaseResValues
> Task :unityLibrary:packageReleaseResources UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.plugin:generateReleaseResources
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResources
> Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseResources
> Task :unityLibrary:unity-android-resources:generateReleaseResources
> Task :unityLibrary:IronSource.androidlib:generateReleaseResources
> Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
> Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
> Task :launcher:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.plugin:packageReleaseResources
> Task :unityLibrary:IronSource.androidlib:packageReleaseResources
> Task :unityLibrary:EasyMobile.androidlib:packageReleaseResources
> Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:extractDeepLinksRelease
> Task :unityLibrary:GooglePlayGamesManifest.plugin:extractDeepLinksRelease
> Task :unityLibrary:unity-android-resources:packageReleaseResources
> Task :unityLibrary:unity-android-resources:extractDeepLinksRelease
> Task :unityLibrary:EasyMobile.androidlib:extractDeepLinksRelease
> Task :unityLibrary:FirebaseApp.androidlib:packageReleaseResources
> Task :unityLibrary:FirebaseCrashlytics.androidlib:packageReleaseResources
> Task :unityLibrary:FirebaseApp.androidlib:extractDeepLinksRelease
> Task :unityLibrary:IronSource.androidlib:processReleaseManifest
> Task :unityLibrary:FirebaseCrashlytics.androidlib:extractDeepLinksRelease
> Task :unityLibrary:GooglePlayGamesManifest.plugin:processReleaseManifest
> Task :unityLibrary:EasyMobile.androidlib:processReleaseManifest
> Task :unityLibrary:FirebaseApp.androidlib:processReleaseManifest
> Task :unityLibrary:unity-android-resources:processReleaseManifest
> Task :unityLibrary:FirebaseCrashlytics.androidlib:processReleaseManifest
> Task :unityLibrary:GooglePlayGamesManifest.plugin:parseReleaseLocalResources
> Task :unityLibrary:IronSource.androidlib:parseReleaseLocalResources
> Task :unityLibrary:FirebaseCrashlytics.androidlib:parseReleaseLocalResources
> Task :unityLibrary:EasyMobile.androidlib:parseReleaseLocalResources
> Task :unityLibrary:FirebaseApp.androidlib:parseReleaseLocalResources
> Task :unityLibrary:EasyMobile.androidlib:generateReleaseRFile
> Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseRFile
> Task :unityLibrary:GooglePlayGamesManifest.plugin:generateReleaseRFile
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseRFile

> Task :unityLibrary:processReleaseManifest
D:\Github\9code\trojan-war\Temp\gradleOut\unityLibrary\src\main\AndroidManifest.xml:30:5-84 Warning:
	Element uses-library#org.apache.http.legacy at AndroidManifest.xml:30:5-84 duplicated with element declared at AndroidManifest.xml:16:5-84

> Task :unityLibrary:IronSource.androidlib:generateReleaseRFile
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseLibraryResources
> Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseLibraryResources
> Task :unityLibrary:EasyMobile.androidlib:compileReleaseLibraryResources
> Task :unityLibrary:IronSource.androidlib:compileReleaseLibraryResources
> Task :unityLibrary:GooglePlayGamesManifest.plugin:compileReleaseLibraryResources
> Task :unityLibrary:parseReleaseLocalResources
> Task :unityLibrary:unity-android-resources:parseReleaseLocalResources
> Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:GooglePlayGamesManifest.plugin:generateReleaseBuildConfig
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseBuildConfig
> Task :unityLibrary:EasyMobile.androidlib:generateReleaseBuildConfig
> Task :unityLibrary:GooglePlayGamesManifest.plugin:javaPreCompileRelease
> Task :unityLibrary:FirebaseApp.androidlib:javaPreCompileRelease
> Task :unityLibrary:IronSource.androidlib:generateReleaseBuildConfig
> Task :unityLibrary:EasyMobile.androidlib:javaPreCompileRelease
> Task :unityLibrary:IronSource.androidlib:javaPreCompileRelease
> Task :unityLibrary:unity-android-resources:generateReleaseRFile
> Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseBuildConfig
> Task :unityLibrary:FirebaseCrashlytics.androidlib:javaPreCompileRelease
> Task :unityLibrary:unity-android-resources:compileReleaseLibraryResources
> Task :unityLibrary:unity-android-resources:generateReleaseBuildConfig
> Task :unityLibrary:unity-android-resources:javaPreCompileRelease
> Task :unityLibrary:generateReleaseRFile

> Task :launcher:processReleaseManifest
[:unityLibrary] D:\Github\9code\trojan-war\Temp\gradleOut\unityLibrary\build\intermediates\library_manifest\release\AndroidManifest.xml:113:9-115:40 Warning:
	Element uses-library#org.apache.http.legacy at [:unityLibrary] AndroidManifest.xml:113:9-115:40 duplicated with element declared at [:unityLibrary] AndroidManifest.xml:68:9-70:40

> Task :unityLibrary:prepareLintJarForPublish UP-TO-DATE
> Task :launcher:mergeReleaseResources
> Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:IronSource.androidlib:compileReleaseJavaWithJavac
> Task :unityLibrary:unity-android-resources:compileReleaseJavaWithJavac
> Task :unityLibrary:EasyMobile.androidlib:compileReleaseJavaWithJavac
> Task :unityLibrary:GooglePlayGamesManifest.plugin:compileReleaseJavaWithJavac
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseJavaWithJavac
> Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseJ<message truncated>

Hello,

When you say that you upgraded to API 34, are you saying that you changed the build settings to target API 34 or did you also install version 34 of the API? Usually, Unity will pop up a window saying that you need to install the version of the API that you’re building for if it isn’t already installed

I have installed API 34, my build in current project it fails again

After I tried everything, I still can’t build API 34, please help me

> Configure project :launcher
WARNING: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':launcher:processReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > AAPT2 aapt2-4.0.1-6197926-windows Daemon #1: Unexpected error during link, attempting to stop daemon.
     This should not happen under normal circumstances, please file an issue if it does.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':launcher:bundleReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > AAPT2 aapt2-4.0.1-6197926-windows Daemon #0: Unexpected error during link, attempting to stop daemon.
     This should not happen under normal circumstances, please file an issue if it does.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

BUILD FAILED in 3s
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

CommandInvokationFailure: Gradle build failed. 
D:\Unity Version\Unity\Editor\2020.3.48f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK\bin\java.exe -classpath "D:\Unity Version\Unity\Editor\2020.3.48f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "bundleRelease"

I read over the error and I see that you’re using Gradle version 6.1.1 and with versions of Unity that are 2022.3.15 and older, you need to change this to 6.7.1 manually. The Android section of our setup guide will have the instructions on how to do this: https://lightship.dev/docs/ardk/setup/

I would also like to bring to your attention that Unity 2020 is no longer supported, if you’re experiencing issues beyond this we can’t guarantee a solution to your issue. I would recommend you use Unity 2022.3.37. Not only is that version supported, but the Gradle issue you’re currently experiencing no longer exists and doesn’t require manual intervention. The Gradle version that is shipped with Unity 2022.3.16 and beyond is new enough that it doesn’t require this additional step and will work out of the box.