[SOLVED] Error: Your app isn’t using AndroidX.

I used Windows’ Visual Studio Code to create a flutter app. When I run the project, a notice appeared saying,

AndroidX is not used by your app.
You may easily migrate your app by following the instructions on https://goo.gl/CP92wY to prevent any build failures.

However, while creating the Android project study and its APK with Flutter, an error occurred. So here is the answer:

Step 1. Go to Android folder of your project.

Step 2. Open gradle.properties File.

Step 3. Paste the Below Code in the file.

android.useAndroidX=true
android.enableJetifier=true

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x