Flutter Solve Your App Is Not Using AndroidX Build Migration Error

admin_img Posted By Bajarangi soft , Posted On 05-11-2020

AndroidX also known as Android Extension Library is a new way to manage packages bundles in android development sector. Using AndroidX we can individually manage which packages are bundled with Android operating system and which are bundled with android APK file using new modified file structure. From now on all the default android classes will be in android operating system and all the other libraries and dependencies will be part of AndroidX.

Flutter Solve Your App Is Not Using AndroidX Build Migration Error

Flutter Solve Your app is not using AndroidX Build Migration Error

1. To remove this error from current flutter build project GoTo Flutter_Project -> android -> gradle.properties file. Open the gradle.properties file in any Text editor. Add below lines in this file and Save the file.

android.useAndroidX=true
android.enableJetifier=true


Source code for my gradle.properties file after adding above code:

org.gradle.jvmargs=-Xmx1536M
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true


2. Now we have to clean our flutter project already present build file. So open your Flutter Project Root directory in Command Prompt or Terminal and execute flutter clean command.

3. FInally, Here you go now please make sure your system is connected to internet and now simply execute the flutter run command and you will see the AndroidX error will be resolved  .

 

Related Post