I'm using Unity 2020 to build for Android. Unity provides a
mainTemplate.gradle file, looks a bit like this.
As per Unity docs, there are certain template variables that Unity will fill in when it generates the actual
What the docs don't mention at all is what the logic is behind how these are filled in.
The specific issue I have is that it defaults to a version of the build tools that's too old for a particular entry in my manifest. As such, I'm trying to override
BUILDTOOLS, but I've not been able to find anything online about either manually overriding an arbitrary template variable, or explicitly setting the Build Tools version.
All the docs say is
SDK Build tools used (for example, 25.0.1)., completely unhelpfully.
Any advice welcome.