apache / incubator-weex-site

Apache Weex (Incubating)
Apache License 2.0
87 stars 362 forks source link

使用了改完包名的weex sdk 0.28版本,weex 初始化总是失败 #545

Closed dannyzhuang closed 4 years ago

dannyzhuang commented 4 years ago

weex 初始化的时候调用 WXSDKEngine.initialize(SuningApplication.getInstance(), config); ,weex sdk中会调用方法initFrameworkEnv 如图: QQ图片20191109112104

这个方法初始化的时候 initFrameworkEnv方法停留了很长时间,最终失败,走到else里面去 QQ图片20191109112122

造成

5555

我业务代码里面,每次跳转到weex的时候,都会判断weex 是否已经被初始化了: WXSDKEngine.isInitialized() 如果没有初始化,我就不会跳转到weex 页面。

![Uploading 222.png…]()

同时看到初始化的时候有异常log:

666

YorkShen commented 4 years ago

com.taobao.windmill is something verbose, an we will delete it soon.

As for your problem, you may want to have a look at https://github.com/apache/incubator-weex/issues/3003

yjouyang commented 4 years ago

Same problem!

YorkShen commented 4 years ago

Read the releated Github Issues first

Just make sure all the .so files in weex.aar also exists in your apk. That's the reason for all the similar issuses.

yjouyang commented 4 years ago

@YorkShen Thanks for your reply! Problem solved by copying jsc to my project. By the way, you might want to update this document

YorkShen commented 4 years ago

@YorkShen Thanks for your reply! Problem solved by copying jsc to my project. By the way, you might want to update this document

Actually, you're better than me when talking about editing documentation. You met the problem and showed us the ability to solve it, while I only knew how things works theoretically.

On bottom of each document page, there is a button to allow you create a Github Pull request to reword the document.