I'm on Android Studio 4.2.2. I created a new project and haven't added anything to the starter code and whenever I click build or run, I get this error:
Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.
I've looked at other posts' suggestions, but neither of those solutions worked. Here's what I've tried:
rm -rf /path/to/android/sdk/build-tools/31.0.0
(it doesn't end in "-rc" like some other posts have described)I'm an Android noob just trying to set up a hello world project, and it really shouldn't be this hard.
The same problem was encountered and solved with a few line changes.
Check the Project code panel, and go to Gradle Scripts → build.gradle file,
Now run the app. It works for me.