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 ...
Home/installed build tools revision 31.0.0 is corrupted
422822993
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, Change three places from 31 to 30: compileSdkVersion, buildToolsVersion, and targetSdkVersion You'll notice a lightbulb hit occurring on modified lines. ClRead more
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.
See less