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
- [URP][Lighting] The skybox doesn't render after changing the settings of the Material when using the URP Render Pipeline
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
This is a duplicate of issue #1355593