How to fix flutter AndroidX incompatibility?

前端 未结 6 976
暗喜
暗喜 2021-01-02 17:36

I just import webview_flutter plugin and found that the plugin has incompatible with my flutter environment. Then using Android Studio I migrate my AndroidX environment with

6条回答
  •  星月不相逢
    2021-01-02 18:23

    First make sure that all your packages in the pubspec.yaml are of the latest version. Then open the android project of your flutter app with android studio, select Refactor->Migrate to Androidx(make sure that you are doing that that from the android project and not from the flutter one). Wait until android studio finishes migrating your project, rebuild your project. Hope it helps!

提交回复
热议问题