Androidx Incompatibility Error For Image_picker_saver Error
During the run console, the image_picker_saver package is giving AndroidX incompability. the package is - image_picker_saver: ^0.1.0 Can anyone help how to handle this error? Run
Solution 1:
I suggest you to enable AndroidX.
Official docs: https://flutter.dev/docs/development/packages-and-plugins/androidx-compatibility
As you see in third entry:
In android/gradle.properties, append =>
android.enableJetifier=trueandroid.useAndroidX=true
If you don't want to use AndroidX, latest version of packages you can use listed down below.
If your package don't listed there, enabling AndroidX is only choice.
Also change your minimum sdk inside android/app/gradle.build:
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.flutter_testing"
minSdkVersion 16// => Make this 21
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
And finally, follow that answer:
Change the gradle version also.
Solution 2:
image_picker_saver hava upgraded to 0.3.0 and support Android X
Post a Comment for "Androidx Incompatibility Error For Image_picker_saver Error"