Namikaze Minato
Namikaze Minato

Reputation: 1352

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.

Upvotes: 0

Views: 750

Answers (2)

hoford
hoford

Reputation: 5323

use

"implementation 'androidx.constraintlayout:constraintlayout:2.0.2'

Make sure your project compiles at that point. Then convert.

This small (< 2min) video shows the conversion: https://twitter.com/i/status/1187075643118239744

Upvotes: 1

Alex Krafts
Alex Krafts

Reputation: 525

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

Upvotes: 1

Related Questions