Search Issue Tracker

By Design

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:

    Unfortunately this is not something we can fix, to upgrade Gradle and associated dependencies on 2021.3 would require significant refactoring and our policy states that LTS releases are to not have large or breaking changes. There exists a workaround that involves exporting to Android studio, and we could not reproduce the empty project build issues internally.

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.