Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.
运行项目报错 删除模块中的 buildToolsVersion "30.0.3"
2、Manifest 设置
compileSdkVersion 31 和 targetSdkVersion 31 时 运行报错 如下
Manifest merger failed : Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See
修改方法 在Manifest.xml中注册的activity 中添加
android:exported="false"
如下