How to migrate existing flutter project to Android X ? Are there any pro and cons?
Now go to you app level build.gradle file and change your compileSdkVersion and targetSdkVersion to 28. Now right click on android directory in your flutter project go to Flutter and click on Open Android module in Android Studio and then click on new window. If you want backup select the check box and click Migrate.
Migrate an existing project using Android Studio. With Android Studio 3.2 and higher, you can migrate an existing project to AndroidX by selecting Refactor > Migrate to AndroidX from the menu bar. The refactor command makes use of two flags. By default, both of them are set to true in your gradle.properties file:
Select Migrate to AndroidX from the Refactor menu. If you are asked to backup the project before proceeding, check Backup project as Zip file, then click Migrate . Lastly, save the zip file in your location of preference. The refactoring preview shows the list of changes. Finally, click Do Refactor : That is it!
You would require to migrate to Android X if you intend to use features that have breaking changes for the latest library. I personally faced this problem cloud_firestore 0.9.0as the change log says, it required a migration to Android X. Your Android app is in the androiddirectory of the project.
You would require to migrate to Android X if you intend to use features that have breaking changes for the latest library. I personally faced this problem cloud_firestore 0.9.0 as the change log says, it required a migration to Android X.
Your Android app is in the android
directory of the project. First open the android
directory with Android Studio 3.2+
. Then Refactor > Migrate to AndroidX. After that also add these to the gradle.properties
file in the android
directory
android.useAndroidX=true
android.enableJetifier=true
In your IDE menu, go to Refactor
and use Migrate to AndroidX...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With