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
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
This is a duplicate of issue #1355593