[flutter][报错]One or more plugins require a higher Android SDK version.

报文

One or more plugins require a higher Android SDK version.
Fix this issue by adding the following to D:\github\flutter_password_saving_software\android\app\build.gradle:
android {
  compileSdkVersion 33
  ...
}

解决

修改方案:找到本地flutter安装目录D:\flutter\flutter_windows_3.3.1-stable\flutter\packages\flutter_tools\gradle,修改flutter.gradle文件内static int compileSdkVersion = 31==》static int compileSdkVersion = 33

引用

flutter 项目报错 One or more plugins require a higher Android SDK version.

你可能感兴趣的:(flutter,报错,flutter,android)