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:
Baca Juga
- Cannot Access 'androidx.lifecycle.hasdefaultviewmodelproviderfactory' Which Is A Supertype Of 'favoritebottomdialogfragment'. Check Your Module Cla
- Unable To Find Bundled Java Version With Flutter Doctor, After Updating Android Studio Arctic Fox(2020.3.1) On M1 Apple Silicon
- I Am Getting This Errors “cmdline Tools Component Is Missing” I Have Installed Flutter And Android Studio, How To Solve Them, Or What Has To Be Done?
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"