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
I faced the similar problem.
This Medium article helped me to find 75% solution for my problem
I followed the steps mentioned in this article. and I'm stuck in the end
Android studio is not allowed me to open android module (folder) from the project structure directly. So I opend manually in the new window of android studio.
Android is not refactored the gradle testRunner classpath androidTestImplementation it is prompting like is dependent So then I manually replaced all the paths like.
android.support.test.runner.AndroidJUnitRunner to androidx.test.runner.AndroidJUnitRunnercom.android.support.test:runner to androidx.test:runner:1.1.0com.android.support.test.espresso:espresso-core to androidx.test.espresso:espresso-core:3.1.0and at the end I added to android/gradle.properties
android.useAndroidX=true
android.enableJetifier=true
Then ran the application. ;) after that androidX warning disappeared.