android - AndroidX 中的 MotionLayout 不存在
问题描述
Android Studio 在 xml 中找不到 MotionLayout。我使用androidx.constraintlayout.motion.widget.MotionLayout
标签并得到一个灰屏。我也在实施'com.android.support.constraint:constraint-layout:2.0.0-alpha4'
并更改为 alpha02 没有任何改变。我已经找到了一个具有相同问题的问题,但它也没有解决方案。
解决方案
我在 gradle 中使用了错误的实现。正确的是implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha4'