How to fix flutter AndroidX incompatibility?

前端 未结 6 977
暗喜
暗喜 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:21

    Thanks for your suggestion,

    I've fixed it by doing these steps : 1. Try adding this line In your Project folder > android > app > build.gradle, add the following Line in

    multiDexEnabled true

    inside defaultConfig

    1. Then upgrade gradle dependency in the android/build.gradle file: classpath 'com.android.tools.build:gradle:3.3.1' (previously on version 3.2.1)

    2. Run flutter clean and rebuild your project

提交回复
热议问题