【发布时间】:2019-07-02 21:00:18
【问题描述】:
我正在尝试在ConstraintLayout 中使用Barrier 视图:
<android.support.constraint.Barrier
android:id="@+id/buttonBarrier"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:barrierDirection="top"
app:constraint_referenced_ids="answer1Button,answer2Button"
/>
它在 IDE 中运行良好,并且我收到了特定于 Barrier 的 lint 消息。但是当我运行该应用程序时,它会在尝试膨胀包含障碍的布局时崩溃:
java.lang.ClassNotFoundException: Didn't find class "android.support.constraint.Barrier"
我正在使用 AndroidX ConstraintLayout 1.1.3:
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
这里发生了什么?
【问题讨论】:
-
请避免重复发帖! A.B.C.:总是。是。正在搜索。
标签: android android-constraintlayout