How to create a new Flutter project that targets Android KitKat and Android SDK 19? Which Flutter version should I use? - flutter

I need to use a native Android library that uses SDK 19, so I need to create a new Flutter project that supports SDK 19 and Android KitKat. But I don't know which Flutter version I should change to for best support for SDK 19 and Android KitKat. I have checked the Flutter release documentation but I can't for the life of me find the appropriate Flutter version to use.
In case you wonder why I have to use such an old SDK version, is that I am using a Zebra SDK for one of their scanner devices and that's the version they currently have available and they recommend creating a project specifically for SDK 19 and KitKat.
Thanks!

Related

How to check what version of flutter sdk xcode is using?

I have several versions of the flutter sdk installed on my machine, each has an alias. I'm not sure what version xcode is using when building the app, how can I check it?
UPDATE:
I found a solution, information about flutter sdk which is used to build the version via xcode you can find in ios/Flutter/Generated.xcconfig. From here you can change the specific sdk path in FLUTTER_ROOT.

Is it possible to get flutter SDK version during application runtime?

I'm using fvm, so multiple flutter SDK versions are installed and I want to be able to get, if possible, flutter SDK version during application runtime to verify that correct version was used during build, for example, when I compile manually in Xcode.

Flutter: Intellij does show no device (but no problem in Android Project)

I am trying to set up Flutter in Intellij (2020.1 Community Edition). I installed Dart and Flutter as plug-ins. I also have installed the Flutter SDK as well as the Android SDK.
After downloading an android virtual device (Pixel 2 XL API 27) I wanted to try out to run the Flutter template app, but it fails to recognize the emulator. When I create an Android Project and try to run it with an emulator it runs without any problems.
This post (Flutter : No devices) did not provide me with anything useful.
I solved the issue. I went to File > Project Structure > Project. At Project SDK I selected Android API 28 Platform. Then click Apply and Ok to finish this process. After doing this step you can select the device.
Intellij does that a lot in my system. You had to check Flutter path is set in File | Settings | Languages & Frameworks | Flutter
and Android SDK is set to Android API 29 Platform in File > Project Structure > Project

Minimum Android version with flutter

Which minimum android version is supported by flutter?
Do some plugins have any effect on which version is not supported?
I tried to run my flutter app on an android emulator, but with the version android 16 it doesn't work and the app crashes. Do I have to change the compile version in some config files or why doesn't it work?
Flutter support 16. But to run app on Android emulator, use over 19.
https://github.com/flutter/flutter/issues/11094
https://github.com/flutter/flutter/issues/9108
https://github.com/flutter/flutter/issues/8610
From Flutters FAQ
flutter.dev/docs/resources/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.
Note Flutter currently does not support building for x86 Android
(issue #9253) directly, however apps built for ARMv7 or ARM64 run fine
(via 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 but we don’t yet
have an official device compatibility guarantee.
We believe Flutter works well on tablets. We do not currently
implement all of the tablet-specific adaptations recommended by
Material Design, though we are planning further investment in this
area
The answer to this question also, partly, needs to take into consideration what parts of Android you want to take advantage of in your application. The question of what min version Flutter supports has been answered here a couple of times so I won't answer that, but the Android support libraries will also need specific min versions.
If you plan to use plugins of any kind then you will probably hit multiple issues if your min version is too low. Do you need Firebase? Do you need specific camera functions?
Google also just announced required bumps for min versions with regards to Google Play that you should review.
My advice is to follow documentation, analytics and best practices to determine what you "true" min version should be.
The Flutter documentation has this answer to Android and iOS. Now it says that support: Android Jelly Bean, v16, 4.1.x or newer, and iOS 8 or newer. However, this information can change according to the new Flutter version. By this reason, it is better that you review the next link:
https://flutter.dev/docs/resources/faq#what-devices-and-os-versions-does-flutter-run-on
Furthermore, it would be best if you analyzed the plugins because they could need higher versions of Android and iOS.
This answer can be useful :
Devices and OS versions on which Flutter runs
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.
You can learn more here

Emulator with API 15 and Android 4.0.3 shows in settings 4.0.4

I need to emulate Android device (Samsung Tab 2) with version 4.0.3, but after choosing it in Android Virtual Device Manager and running it I get info in settings that it is a 4.0.4 version.
I need to run my web app written in html5 to reproduce some bugs.
Any idea about it?
The problem is that the emulator Android versions only correspond with specific versions from each API level. 4.0.3 and 4.0.4 are both in API level 15, so the emulator is only made available for Android 4.0.4. There is no Android 4.0.3 emulator; you'd have to find the system image for that or build it yourself.