Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

[Android] 显示异常 when weex version is 0.26.0 or 0.28.0 #3063

Open
hyyhl opened this issue Dec 6, 2019 · 1 comment
Open

[Android] 显示异常 when weex version is 0.26.0 or 0.28.0 #3063

hyyhl opened this issue Dec 6, 2019 · 1 comment

Comments

@hyyhl
Copy link

hyyhl commented Dec 6, 2019

weex_sdk版本号升级到 0.26.0 或 0.28.0 页面上加载失败,低于0.26.0 显示正常。

错误信息W/weex: Warning :Component tree has not build completely,onActivityCreate can not be call!

image

看源码,是由于在 WXSDKInstance 中的 mRootComp 为null, 不明白为何会这样?

@YorkShen
Copy link
Contributor

onActivityCreate 回调未正确执行,通常会导致一些 JS 事件无法发送,变量未初始化,很少会导致白屏。

你需要检查 GraphicActionCreateBody, GraphicActionAddElement 等对象是否被执行,这些对象是真正负责创建 View 的。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants