Search Issue Tracker
Third Party Issue
Votes
2
Found in
2020.3
2021.1
2021.1.16f1
2021.2
2022.1
Issue ID
1355593
Regression
Yes
[Android] Android build fails when targeting SDK 31 and using Build-Tools 31.0.0
Reproduction steps:
1. Create an empty 3D project
2. Switch to Android platform and add the default sample scene
3. Change Target API Level to API Level 31
4. Add LauncherTemplate.gradle and MainTemplate.gradle in the Publishing Settings
5. In both files change the line "buildToolsVersion '**BUILDTOOLS**'" to "buildToolsVersion '31.0.0'"
6. Build for Android
Expected result: builds succeeds
Actual result: builds fails with the following error "Could not determine the dependencies of task ':launcher:compileReleaseJavaWithJavac'. Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager."
Reproduces on: 2020.3.15f2, 2021.1.16f1, 2021.2.0b4, 2022.1.0a4
Not reproducible on: 2019.4.29f1
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
- Inspector elements are rendered twice when the script component is added via drag-and-drop while the HideFlags.HideInInspector property is set
- Error "Light baking failed with error code 5 (Convergence data not available while rendering lightmaps)" thrown in Console when generating lighting for specific GameObjects
- Copy and Paste options for an Animation Property value are disabled in the Right click contextual menu
- Asset is not found when searching the Label "NewLabel" in Search Window
- "Compute dispatch: missing texture ID..." and "Compute dispatch: missing UAV ID..." warnings are thrown after changing the platform in High Definition 3D template
Resolution Note (2022.1.X):
The issue is caused by Android Gradle Plugin incompatibility with build-tools 31.0.0. The same issue is reproducible with a project created in Android Studio 4.0.1 and 4.1.3 when build-tools 31.0.0 are installed.
Recommended solution is to use build-tools 30.0.2 or lower.