compo专题

Unknown custom element: did you register the component correctly? For recursive compo

Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the “name” option. 这个报错 的解决方案,多半是注册组件的放在了最后如图: 吧组件提到上面即可: 问题可能就出在这里,还有就是注册全剧组件的时候

This tag and its children can be replaced by one and a compo

写了这么一段代码:     <LinearLayout         android:orientation="horizontal"        android:layout_centerInParent="true"     android:layout_height="wrap_content"     android:layout_width="wrap_content">