I just created a new flutter project, added a few plugins and I\'m getting the plugin switched to android x therefore i need to switch to android x. I\'ve tried all the diff
Add this to the end of your pubspec.yaml file, without any parent:
module:
androidX: true
Then, at android/graddle.properties add:
android.useAndroidX=true
android.enableJetifier=true
Run at your CLI:
flutter clean
and rerun your code
flutter run
This may adjust your problem with AndroidX.
For your SDK, i think you may change inside android/app/build.gradle
minSdkVersion 21
targetSdkVersion 28
multiDexEnabled true
the multiDexEnabled is optional (in case of some error related to it).
I think this may solve your problem, please give me a feedback about it.