简体   繁体   English

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

[英]Does Flutter work on any Android platform version?

I'm newbie on Android programming, but I've heard about one should be careful with the Android version when programming.我是 Android 编程的新手,但我听说有人在编程时应该小心 Android 版本。 So far, while I'm learning Flutter, I've not read on any book/article such a warning, it seems that new Flutter/widgets versions are independent on any Android platform version.到目前为止,虽然我正在学习 Flutter,但我还没有读过任何书籍/文章这样的警告,似乎新的 Flutter/widgets 版本独立于任何 Android 平台版本。 That is, Can a Flutter app running on Android API 29 run on old Android API 10? That is, Can a Flutter app running on Android API 29 run on old Android API 10? If it is not, how can I know on what Android platform versions my current Flutter app can run?如果不是,我怎么知道我当前的 Flutter 应用程序可以在哪些 Android 平台版本上运行?

According to the Flutter FAQ :根据Flutter 常见问题解答

What devices and OS versions does Flutter run on? Flutter 在哪些设备和操作系统版本上运行? Mobile operating systems: Android Jelly Bean, v16, 4.1.x or newer, and iOS 8 or newer.移动操作系统:Android Jelly Bean,v16、4.1.x 或更高版本,以及 iOS 8 或更高版本。

Mobile hardware: iOS devices (iPhone 4S or newer) and ARM Android devices.移动硬件:iOS 设备(iPhone 4S 或更新版本)和 ARM Android 设备。

Flutter supports building ahead-of-time (AOT) compiled libraries for x86_64, armeabi-v7a, and arm64-v8a. Flutter 支持为 x86_64、armeabi-v7a 和 arm64-v8a 构建提前 (AOT) 编译库。

Apps built for ARMv7 or ARM64 run fine (using ARM emulation) on many x86 Android devices.为 ARMv7 或 ARM64 构建的应用程序在许多 x86 Android 设备上运行良好(使用 ARM 仿真)。

We support developing Flutter apps with Android and iOS devices, as well as with Android emulators and the iOS simulator. 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.我们在各种低端到高端的手机和平板电脑上进行了测试,但我们还没有官方的设备兼容性保证。

So it appears SDK version 16 is the minimum, and you can change the versions you are targeting as answered here .因此,SDK 版本 16 似乎是最低要求,您可以按照此处的回答更改您的目标版本。

Don't worry about not working on android because by default the minimum sdk version is 21 but can be set to anything app-on creating the project.不要担心不能在 android 上工作,因为默认情况下,最低 sdk 版本是 21,但可以在创建项目时设置为任何应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM