The specified child already has a paren 错误。

来源:互联网 发布:为什么有网络协议 编辑:程序博客网 时间:2024/06/06 02:38
Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.

出现这种错误一般都是,往一个父View里面重复添加了同一个view,找到重复的,删掉即可。有重复添加需要的,需要重新生成一个View。或者把前一个remove掉。

阅读全文
0 0