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

  1. 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).

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.