Android Studio Preview无法呈现constraintLayout屏障项目

问题描述 投票:0回答:1

((在Android Studio版本3.5.3上)该屏障在运行时可以正常运行,但是AS预览无法找到/渲染它。

 <androidx.constraintlayout.widget.Barrier
        android:id="@+id/barrier"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:barrierDirection="end"
        app:constraint_referenced_ids="view1, view2"
        />

结果:

enter image description here

屏障显示为灰色框,好像预览无法识别

((在Android Studio版本3.5.3上)该屏障在运行时可以正常运行,但AS预览无法找到它/将其呈现

kotlin android-constraintlayout
1个回答
0
投票

如果您使用的是较早的dependency,请使用其中之一:

© www.soinside.com 2019 - 2024. All rights reserved.