AndroidX中的MotionLayout不存在

P1N*_*WIN 1 sdk android android-motionlayout

Android Studio无法在xml中找到MotionLayout。我使用androidx.constraintlayout.motion.widget.MotionLayout标签,并显示灰屏。我也在实现'com.android.support.constraint:constraint-layout:2.0.0-alpha4',更改为alpha02不会改变任何内容。我已经找到了一个有同样问题的问题,但是它也没有解决方案。

P1N*_*WIN 6

I used the wrong implentation in gradle. Correct is implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha4'