java.lang.IllegalStateException: The specified child already has a parent. You must call removeView



java.lang.IllegalStateException:

The specified child already has a parent. You must call removeView() on the child's parent first.

在android代码中如果出现此异常,说明在同一个布局中添加了相同的组件实例。应该创建不同的实例组件,并将其添加到布局当中。

你可能感兴趣的:(android,异常,布局)