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
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
- Prefab override popup is cropped/positioned incorrectly when more than one display is used and a higher display Scale is set
- Opening a dropdown on a small screen results in its instant closing when mouse cursor is pressed where the dropdown is going to be opened
- Only "ArgumentNullException: Value cannot be null" is displayed instead of all the actual errors when opening a project with numerous compilation errors
- MultiColumnListView and MultiColumnTreeView do not change selection on first input when focus is set by code
- SerializedProperty.DataEquals is returning false when SerializedProperty.EqualContents return true
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