shushu2013 commented on issue #1806: android apk , render error :-2013
URL: https://github.com/apache/incubator-weex/issues/1806#issuecomment-441158701
 
 
   I guess the problem is the same as 
[#1627](https://github.com/apache/incubator-weex/issues/1627), 
[1596](https://github.com/apache/incubator-weex/issues/1596)
   
   we tried modify the source file: 
[WXBridgeManager.java](https://github.com/apache/incubator-weex/blob/0.19.0.2/android/sdk/src/main/java/com/taobao/weex/bridge/WXBridgeManager.java)
    if js framework init failed then invoke createInstance method again, it 
works.
   ```
   if (!isJSFrameworkInit() && reInitCount == 1 && 
!WXEnvironment.sDebugServerConnectable) {
         instance.onRenderError(
                 
WXErrorCode.WX_DEGRAD_ERR_INSTANCE_CREATE_FAILED.getErrorCode(),
                 WXErrorCode.WX_DEGRAD_ERR_INSTANCE_CREATE_FAILED.getErrorMsg() 
+
                         " isJSFrameworkInit==" + isJSFrameworkInit() + " 
reInitCount == 1" );
         post(new Runnable() {
           @Override
           public void run() {
             initFramework("");
             createInstance(instanceId, template, options, data);
           }
         }, instanceId);
         return;
       }
   ```
   
   reference: [Weex 
第一次打开App偶尔有不加载页面的问题](https://www.jianshu.com/p/040c46371a76) 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to