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
- Frame Debugger is not disabled when switching Scenes if the Frame Debugger window is not open during the transition
- Standalone Profiler Targets another Project if a Standalone Profiler was launched in it before when switching between Edit or Play Mode Targets
- Crash on ForwardRenderLoopJob when opening a specific project
- [Android] Memory leak and eventual crash on Snapdragon 8 Gen 1+ devices when a Clear Pass is executed after Framebuffer Fetch
- PhysicsRaycaster ray length is incorrect when casting from rotated Camera
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).