Search Issue Tracker
Fixed
Fixed in 2021.3.41f1
Votes
1
Found in
2021.3.38f1
Issue ID
UUM-71602
Regression
No
Gradle error: "...Unexpected error during link..." is thrown when building for Android and targeting API Level 34
How to reproduce:
1. Open the user-attached “Android14Issue.zip” project
2. Open the Build Settings window (File → Build Settings)
3. Change the Target Platform to Android
4. Open the Player Settings window
5. Make sure the “Target API Level” is set to API 34
6. Build the project
7. Observe the Console Window
Expected result: Build is successful
Actual result: Build fails with, “AAPT2 aapt2-4.2.2-7147631-windows Daemon #0: Unexpected error during link, attempting to stop daemon.” Gradle error
Reproducible with: 2021.3.38f1, 2022.2.0a17
Not reproducible with: 2022.3.28f1, 6000.0.1f1
Fixed in: 2022.2.0a18
Reproduced on: Windows 11, macOS 14.4.1 (User’s)
Not reproducible on: No other environment tested
Note: The reporter has noted that it also reproduces on a new project on Windows, but it wasn’t reproducible on CQAs side
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inconsistent behaviour when interacting with different dropdown types with pointer events on parent Visual Element
- Hidden GameObjects won't re-enable when they have call "DontDestroyOnLoad" function
- Overlay Canvas are rendered on each split-screen camera when HDR is enabled
- [Android] The Player loses focus when using UnityEngine.Handheld.StartActivityIndicator() with Facebook SDK
- Build fails with "Building Library/Bee/artifacts/MacStandalonePlayerBuildProgram/gahcy/hj9mx3z/951.0 failed with output:..." errors when Scripting Backend is set to IL2CPP
Resolution Note (fix version 2021.3.41f1):
Fix build failure when targetSDK 34 and depending on androidX legacy library. Updated Gradle version to 7.5.1 (from 6.7.1), AGP version to 7.4.2 (from 4.2.2) and JDK to 11 (from 1.8).