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
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
This is a duplicate of issue #1355593