Android studio does not come with build tools for different android versions when you download it. It also does not make sense since there are multiple versions of build tools and each of them will take hundreds of megabytes on your hard drive. This is why Android Studio installation package is 1 GB while Xcode, which has all the build tools, is 6 GB
When you choose a specific build version in the build.gradle file, your android studio may or may not have that version of build tool installed. And if not, you will see the error complaining about it.
You just need to install the specific version of build tool mentioned in build.gradle like this:
(I choose a different version just to show you how to apply the changes by that apply button :) )
And then sync the project. The error is gone now!