Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.意思是已安装的构建工具修订31.0.0已损坏。使用SDK管理器删除并重新安装。
compileSdkVersion 30 buildToolsVersion "31.0.0" targetSdkVersion 30
我们可以通过降低版本来解决这个问题
compileSdkVersion 30
buildToolsVersion "30.0.2"
targetSdkVersion 30