Search Issue Tracker
Duplicate
Votes
0
Found in
2019.4
2020.3
2020.3.14f1
2021.1
2021.2
2022.1
Issue ID
1352910
Regression
No
[Android] Build fails when targeting an API level 31 and using custom main/launch Gradle templates
How to reproduce:
1. Create an empty project
2. Switch the Target Platform to Android
3. Set the Target API Level to 31 (Edit -> Project Settings -> Player -> Other Settings)
4. In Publishing Settings enable the "Custom Main Gradle Template" and "Custom Launcher Grade Template"
5. Enable "com.android.tools.build:gradle:3.6.0" in the templates manually or switch the files with the attached "launcherTemplate.gradle" and mainTemplate.gradle
6. Build and Run to Android
Expected result: Project is built successfully
Actual result: Build fails with multiple errors, one of such errors is the following: "Installed Build Tools revision 31.0.0 is corrupted"
Reproducible with: 2019.4.29f1, 2020.3.16f1, 2021.1.17f1, 2021.2.0b6, 2022.1.0a6
Notes:
- Reinstalling SDK Build-Tools does not fix this
- The build is successful when the custom Gradle templates are not being used
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
This is a duplicate of issue #1355593