My Flutter App Showing "Your device isn't compatible with this version" - flutter

I have a Flutter app that I've just launched to the play store but in my android oreo phone, it's showing "Your device isn't compatible with this version".
In my build.gradle file
minSdkVersion 16
targetSdkVersion 28
Could someone please help me with this?
Edit: Also if it helps my compileSdk version is 28

Related

Flutter not opening on android older versions

My flutter app won't open in low android 11 version. Only opens in version 12. How can I fix this? Do I need to make changes in the sdk?
Can you try open android/app/build.gradle and change minSdkVersion 24 (for android version 7)

Why flutter asks to install Android SDK Platform 29?

Flutter Installing SDK Platform 29
in my build.gradle (app) contain:
compileSdkVersion 31
minSdkVersion 21
targetSdkVersion 31
I use an emulator with API 24 (Android 7.0) and SDK Platform 31 is also already installed on my computer. Why does flutter keep asking to install SDK platform 29?

my flutter app not be run in android version 8 in real device

** just completed my flutter app and I want to install him in different real devices, in devices with android version 10.0 is working perfectly but in devices with android version 8.0 not be installed**
Go to
Project>android>app>src>main>AndroidManifest.xml and check for the parameter targetSdkVersion
Change that to 29

Not sure if this is a problem with android studio or flutter

I downloaded flutter for android studio and after I started getting this error while trying to run myapp on a virtual device. Before I was using Kotlin for android studio and everything would run fine. I have tried deleting and redownloading both flutter and Android studio.
This is the Error that I get
Which Flutter version are you using? And what android version are you using for the emulator?
I think you don`t have accept android license accept it and run below command on your terminal hope it help you
flutter doctor --android-licenses
and accept the android license
if problem is not solved change the compileSdkVersion 29 , minSdkVersion 23,
targetSdkVersion 29 in build.gradle file here android/app/build.gradle
and relaunch your app
You have to Change the JDK Version
j.d.k 16.0.2 to j.d.k 15.0

Error adding Flutter web-view plugin in version 1.20.4

I would like to use flutter-web plugin in my app. However, I am getting the following SDK error when I add it to my YAML file. I just upgraded to 1.20.4
How do I fix this error?
The current Flutter SDK version is 1.20.4.
Because app depends on webview_flutter >=1.0.0 which requires Flutter SDK version >=1.22.0 <2.0.0, version solving failed.
pub get failed (1; Because app depends on webview_flutter >=1.0.0 which requires Flutter SDK version >=1.22.0 <2.0.0, version solving failed.)
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.20.4, on Mac OS X 10.15.6 19G2021, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 12.0)
[✓] Android Studio (version 3.6)
[✓] VS Code (version 1.49.2)
[✓] Connected device (1 available)
• No issues found!
This is the info in my pubspec.yaml file
environment:
sdk: ">=2.2.2 <3.0.0"
webview_flutter package need minSdkVersion 19 so you have to change the app level gradle
android {
defaultConfig {
// Required by the Flutter WebView plugin.
minSdkVersion 19
}
}
after upgrade your flutter using
flutter upgrade
and then import webview_flutter In your pubspec.yaml file
webview_flutter: ^1.0.0 because webview_flutter is stable in flutter 1.22 stable release.
I was facing the same problem but I did not know the path of that build.gradle so I found it after spending some time.
You have to edit the build.gradle file. In a flutter project, it is found at the path ./android/app/build.gradle.
The parameter that needs to be changed is, of course, minSdkVersion 16, bumping it up to what you need (in this case 19).
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.web_view_example"
minSdkVersion 19 //This is what you need to change.
targetSdkVersion 31
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
For my case, I'm using linkedin_login: ^2.2.1 mean which LinkedIn lib also using webview (iOS is working) but Android it requires to downgrade minSDKVersion to 16. Please open android folder as Android Project in order to see like this. Hope it help you too.