javascript - Weex Android debugging issues
给我你的怀抱
给我你的怀抱 2017-05-16 13:31:38
0
3
686

As shown in the picture, Chrome is used. In debugger mode, this message always appears in red. Sometimes it takes a long time for the front end to load. Is there any optimization plan?

给我你的怀抱
给我你的怀抱

reply all(3)
过去多啦不再A梦

Do you use the playground app?

Ty80

After listening to the IWXDebugProxy.ACTION_DEBUG_INSTANCE_REFRESH broadcast, you need to clear and create a new WXSDKInstance and re-render it again.
Reference:

mWXSDKInstance.registerRenderListener(null);
mWXSDKInstance.destroy();
mWXSDKInstance = null;
mWXSDKInstance = new WXSDKInstance(mActivity);
mWXSDKInstance.registerRenderListener(this);
mWXSDKInstance.render(...)

This method is effective for debugging the front end in run mode. If it is actually in debug mode, this problem will still occur and needs to be solved.

Peter_Zhu

I have encountered it. It was caused by the incorrect version of okhttp referenced by the app.
I was using version 2.5, and it would time out and disconnect in 10 seconds. Just change it to 2.3.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template