我正在使用 Android Studio Artic Fox,并创建了 ConstraintLayout 的后代......
我得到一个布局编辑器如下:
如您所见,有一条关于“缺少课程”的错误消息。现在,当我在另一个布局中使用我的后代类时,我再次收到该消息并且没有呈现任何内容,这很烦人。我发现了一些具有类似(但不同)问题的旧问题,并想知道是否有人碰到过那个问题。
编辑:每个请求,这里是示例 XML:
<?xml version="1.0" encoding="utf-8"?>
<testing.TestConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent">
</testing.TestConstraintLayout>