Migration to androidX missing in Android Studio

前端 未结 3 1483
清酒与你
清酒与你 2021-01-17 19:11

I am trying to migrate my project to androidX. The project i am trying to migrate is based on android support libraries AppCompat. In the Developer Documentation it says tha

相关标签:
3条回答
  • 2021-01-17 19:28

    "Refactor to AndroidX" option is available for AndroidStudio 3.2 stable and later. https://developer.android.com/studio/

    0 讨论(0)
  • 2021-01-17 19:29

    Switch to "Android" or "Project" tab in the file navigation window. And right click on your parent folder and go to refactor, there listed "Migrate to android" option. It is very simple. In case of any mistakes in migration we can switch back to appcompat version using "migrate to appcompat" under same menu.

    0 讨论(0)
  • 2021-01-17 19:37

    If you have the same problem after you updated AndroidStudio to 3.2 or later, you can modify your ***.kts to ***.gradle. I solved my problem this way.

    0 讨论(0)
提交回复
热议问题