Flutter Projects & Android X Migration Issues

后端 未结 9 1267
粉色の甜心
粉色の甜心 2020-11-27 14:51

I just created a new flutter project, added a few plugins and I\'m getting the plugin switched to android x therefore i need to switch to android x. I\'ve tried all the diff

9条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-27 15:49

    Faced with the same issue.

    In my build.gradle compileSdkVersion and targetSdkVersion were already set to 28. minSdkVersion was set to 23.

    Had already added android.useAndroidX=true android.enableJetifier=true to my android/graddle.properties.

    After adding all these still migrating to AndroidX was not possible. When doing so a message pop up saying "No usage found in this project"

    Adding the following code to my app/build.gradle solved the issue.

    android {

    defaultConfig {
        ...
          minSdkVersion 23 
          targetSdkVersion 28
          multiDexEnabled true
    }
    

    }

    dependencies {

    implementation 'com.android.support:multidex:1.0.3'
    

    }

提交回复
热议问题