I developed an app in flutter with Visual Studio code on Windows. When i ran the project it shows a message,
Your app isn't using AndroidX.
To avoid potential build failures, you can quickly migrate your app by following the steps on https://goo.gl/CP92wY.
But the App is running, and error came when generating the Android project study and its APK on with flutter. So the Solution is :-
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
That’s All. Your project is successfully migrated into androidX.
Want to Know more about androidX, See Documentation.
Thanks for Reading.
Keep Coding.
- What is On-Page Optimization and Off-page Optimization - March 14, 2024
- [SOLVED] Flutter : PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null) - December 7, 2021
- [Solved] Flutter : Error: The getter ‘subhead’ isn’t defined for the class ‘TextTheme’ from package:flutter/src/material/text_theme.dart’ – searchable_dropdown - December 6, 2021