Internal error report in weex framework

05-02 10:03:24.716 14654-14654/? E/weex: create body failed.java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child"s parent first.
                                             at android.view.ViewGroup.addViewInner(ViewGroup.java:4917)
                                             at android.view.ViewGroup.addView(ViewGroup.java:4748)
                                             at android.view.ViewGroup.addView(ViewGroup.java:4688)
                                             at android.view.ViewGroup.addView(ViewGroup.java:4661)
                                             at com.taobao.weex.WXSDKInstance.onRootCreated(WXSDKInstance.java:1382)
                                             at com.taobao.weex.dom.action.CreateBodyAction.executeRender(CreateBodyAction.java:132)
                                             at com.taobao.weex.dom.RenderActionTask.execute(RenderActionTask.java:50)
                                             at com.taobao.weex.ui.WXRenderManager$1.run(WXRenderManager.java:104)
                                             at com.taobao.weex.common.WXThread$SafeRunnable.run(WXThread.java:48)
                                             at android.os.Handler.handleCallback(Handler.java:789)
                                             at android.os.Handler.dispatchMessage(Handler.java:98)
                                             at android.os.Looper.loop(Looper.java:164)
                                             at android.app.ActivityThread.main(ActivityThread.java:6665)
                                             at java.lang.reflect.Method.invoke(Native Method)
                                             at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
                                             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781)
                                             

error shows that the internal mRenderContainer.addView of the onRootCreated () method (the root.getHostView ()) method did not remove the previous child View, before the addview). That is to say, there is a problem that has been added many times, but no problem has been found after many checks. This problem occurs because a vue code has been updated at the front end, and there is no problem on the iOS side. Only the android side has this problem
.

I tested the error page in playground and found that this BUG, appears, but directly modifying the source code can solve this problem, and the page is rendered successfully. But my project was introduced by the jar package, so I can"t modify the source code. What on earth is the cause of this?

Mar.07,2021
Menu