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
- "Draw Additional Lights Shadowmap" calls increase when custom MaterialBlockProperty is used
- Crash on _platform_memmove when importing the "Dragon Crashers - URP 2D Sample Project" to a new 2D project
- "Shader is not supported on this GPU" warnings and and shaders are not loading when building the project for non-Chromium browsers
- [iOS][URP] The screen flickers and the "Execution of the command buffer was aborted due to an error during execution" error is thrown continuously
- Shortcut Manager shows empty conflict filter when resolving runtime conflicts involving different contexts
This is a duplicate of issue #1355593