When I upgraded the SDK version of the project to 31, I reported the following two types of errors
Case 1:
Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager
Case two:
Failed to find Build Tools revision 31.0.0
After repeatedly deleting the SDK, downloading the SDK still reports the above two types of errors, indicating that SDK31 has been damaged and needs to be downloaded again.
In fact, the final solution is also very simple
Find 2 files in the SDK directory, rename them and modify them, then restart:
Restart after modification. You're done!
Thanks again to the original blogger: blogger direct