Flutter:升级android编译的SdkVersion

时间:2019-05-02 07:14:17

标签: flutter

转到android-> app-> build.gradle文件,我看到我的已编译SdkVersion是27。但是,实际上,最新的是28。如果我必须升级到28,否则Flutter会用一个未来的升级?而且,如果我必须照顾它,怎么办?

1 个答案:

答案 0 :(得分:1)

没有flutter upgrade不会升级Flutter SDK。 https://flutter.dev/docs/development/tools/sdk/upgrading#upgrading-the-flutter-sdk-and-packages

如果要升级Flutter软件包,则 flutter packages upgrade https://flutter.dev/docs/development/tools/sdk/upgrading#upgrading-packages-only

如果需要,可以在build.gradle文件中手动将版本更改为28。