Flutter 是否适用于任何 Android 平台版本?

Does Flutter work on any Android platform version?

我是 Android 编程的新手,但我听说有人在编程时应该小心 Android 版本。到目前为止,在我学习 Flutter 的过程中,我还没有看到任何 book/article 这样的警告,似乎新的 Flutter/widgets 版本独立于任何 Android 平台版本。也就是说,Flutter 应用程序可以 运行ning on Android API 29 运行 on old Android API 10?如果不是,我怎么知道我当前的 Flutter 应用可以在哪些 Android 平台版本上 运行?

根据 Flutter FAQ:

What devices and OS versions does Flutter run on? Mobile operating systems: Android Jelly Bean, v16, 4.1.x or newer, and iOS 8 or newer.

Mobile hardware: iOS devices (iPhone 4S or newer) and ARM Android devices.

Flutter supports building ahead-of-time (AOT) compiled libraries for x86_64, armeabi-v7a, and arm64-v8a.

Apps built for ARMv7 or ARM64 run fine (using ARM emulation) on many x86 Android devices.

We support developing Flutter apps with Android and iOS devices, as well as with Android emulators and the iOS simulator.

We test on a variety of low-end to high-end phones and tablets, but we don’t yet have an official device compatibility guarantee.

看来 SDK 版本 16 是最低版本,您可以更改目标版本

不用担心无法在 android 上工作,因为默认情况下最低 sdk 版本为 21,但可以设置为任何 app-on 创建项目。