Search code examples
androidandroid-constraintlayoutandroid-motionlayout

Can't find "Convert to MotionLayout" in android studio


I have tried adding different implementations for constraintlayout

implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha4'
implementation 'androidx.constraintlayout:constraintlayout:2.0.2'

Cleaning the project, still right clicking on constraintLayout does not show "Convert to motionLayout". I need to manually add another xml file under the xml directory for the motion. Looked into other people's problems. Seems they had the dependency issue. Any helps will be appreciated.


Solution

  • The MotionLayout editor is available in Android Studio starting from version 4.0.0. Make sure that you have updated your IDE.