Search Issue Tracker
Fixed
Fixed in 2021.3.44f1, 2022.3.44f1
Votes
16
Found in
2021.3.40f1
2022.3.38f1
Issue ID
UUM-75773
Regression
No
[Android] Building for Android Beta 15 fails when using Android SDK 35 in Unity 2021.3 and 2022.3
Steps to reproduce:
1. Create a new project
2. Go to File > Build Profiles and select Android Platform
3. Go to Edit > Project Settings > Player > Other Settings
4. Make sure that Target API Level is selected as API level 35
5. Build and Run application to the device with Android 15 Beta
Actual results: Build fails with Gradle error:
{code:java}
Android resource linking failed
aapt2 E 07-15 10:17:00 41928 9765380 LoadedArsc.cpp:94] RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data.
aapt2 E 07-15 10:17:00 41928 9765380 ApkAssets.cpp:149] Failed to load resources table in APK '/Applications/Unity/Hub/Editor/2022.3.38f1/PlaybackEngines/AndroidPlayer/SDK/platforms/android-35/android.jar'.
error: failed to load include path /Applications/Unity/Hub/Editor/2022.3.38f1/PlaybackEngines/AndroidPlayer/SDK/platforms/android-35/android.jar.{code}
Expected results: Build is successful and app opens on the device
Reproducible with versions: 2021.3.401, 2022.3.38f1
Not reproducible with versions: 6000.0.9f1
Reproduced with device:
VLNQA00499 - Google Pixel 7 (Pixel 7), CPU: Google Tensor G2, GPU: Mali-G710, OS: 15
Notes:
- Workaround:
-- Enable *Custom Gradle Properties Template* in Edit > Project Settings > Player > Publishing Settings and add android.aapt2FromMavenOverride=<SDK_PATH>/build-tools/35.0.0-rc4/aapt2 in the newly created gradleTemplate.properties file
- Build doesn't fail on 6000.0.9f1 because build tools version is newer in this version
- Building with Android SDK 34 works correctly
- Current aapt2 artifact being used is located in: ~/.gradle/caches/modules-2/files-2.1/com.android.tools.build/aapt2/7.4.2-8841542/19c1d3a659ee40c851f5a1a4b09ddb273d465807/aapt2-7.4.2-8841542-osx.jar
Comments (1)
-
SavedByZero
Oct 05, 2024 18:04
Please also fix for 2022.3.49f1
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
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
- Hovering on the three-dot menu also highlights the tab header near it when not all tabs fit the bar
Resolution Note (fix version 2022.3.44f1):
Android: Fix targetApiLevel 35, add SDK 35 and update BuildTools to 34.0.0
Resolution Note (fix version 2021.3.44f1):
Android: Fix targetApiLevel 35, add SDK 35 and update BuildTools to 34.0.0