Unable to migrate Flutter project to AndroidX

前端 未结 8 665
自闭症患者
自闭症患者 2020-12-14 15:24

I have a Flutter project in Android Studio. I am planning to migrate to AndroidX. Whenever I do Refactor -> Migrate to AndroidX, Android St

8条回答
  •  一个人的身影
    2020-12-14 15:49

    I'm having exact same problem. Been trying to migrate since all the new firebase stuff is forcing it, but the current guides to upgrade are sparse. First I was trying on a backup of my project with a lot of addons and kept getting that error, then I created a brand new flutter project with all the latest (dev channel), followed every step, checked every detail, read every forum, but still getting "You need to have compileSdk set to at least 28 in your module build.gradle to migrate to AndroidX."... Matched the steps from https://androidxhackathon.blogspot.com/2018/05/refactor-to-android-x.html too and can't get it to refactor right. Even went to File>ProjectStructure>Project SDK and set to Android API 28 Platform. Anyone know what we might be missing? Did you have any luck Sam?

提交回复
热议问题