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
Faced with the same issue.
In my build.gradle compileSdkVersion and targetSdkVersion were already set to 28. minSdkVersion was set to 23.
Had already added android.useAndroidX=true android.enableJetifier=true to my android/graddle.properties.
After adding all these still migrating to AndroidX was not possible. When doing so a message pop up saying "No usage found in this project"
Adding the following code to my app/build.gradle solved the issue.
android {
defaultConfig {
...
minSdkVersion 23
targetSdkVersion 28
multiDexEnabled true
}
}
dependencies {
implementation 'com.android.support:multidex:1.0.3'
}