【发布时间】:2020-03-17 10:52:38
【问题描述】:
我正在尝试通过 CodingInFlow 在 YouTube 上关注 Android Studio 开发的播放列表。
我正在尝试关注此视频,但我遇到了问题... https://www.youtube.com/watch?v=-sPOtGqd5OA&list=PLrnPJCHvNZuBtcos16XJnfFx2fSUOyW_-&index=9
我的设计屏幕只是显示为一个灰色框,我收到“androidx.constraintlayout.ConstraintLayout(找不到类)”的错误。
在视频中,他没有使用 AndroidX,而且他的开始标签与我在 .xml 文件中的标签不同。
他的 .xml 文档的开始标签:android.support.constraint.ConstraintLayout
我的 .xml 文档的开始标签:androidx.constraintlayout.ConstraintLayout
我该如何解决这个问题,以便设计显示在灰色框当前所在的位置?
谢谢
【问题讨论】:
标签: android-studio