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'
关于android - AndroidX 中的 MotionLayout 不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55680006/