shawn_ysh
shawn_ysh
  • 发布:2020-09-07 11:36
  • 更新:2020-09-07 11:36
  • 阅读:422

原生Android开发Component,报错is not a container

分类:5+ SDK

各位大佬,开发插件时,我这边自定义了一个Component,他的UI是一个FrameLayout的UI布局。但是在使用时,却报错:

exception function:GraphicActionAddElement, exception:You are trying to add a view to a plv-player, which is illegal as plv-player is not a container

开发的伪代码如下:
<自定义Component >
<button type="primary" style="width:180px; height:44px; position:absolute; bottom:0px; left:0px;"></button>
<button type="primary" style="width:180px; height:44px; position:absolute; bottom:0px; right:0px;"></button>
</自定义Component>

疑惑的是iOS设备并没有这个报错。而在Android上报错了,并且中间的这两个Button并没有显示。

不知道哪位大佬知道是怎么回事,怎么解决吗?

2020-09-07 11:36 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复