1***@qq.com
1***@qq.com
  • 发布:2017-11-16 18:15
  • 更新:2017-11-16 18:15
  • 阅读:2834

【报Bug】Android平台以Widget方式集成HTML5+SDK方法 webview窗口嵌套方式界面打不开,报错了

分类:5+ SDK

详细问题描述
[内容]
Android平台以Widget方式集成HTML5+SDK方法 webview窗口嵌套方式界面打不开,报错了
重现步骤
[步骤]
点击安卓sdk webapp集成方式,进入到hello html5+中,点击webview下面的webview窗口嵌套方式,结果界面打不开,系统后台报错
[结果]
结果界面打不开,系统后台报错
[期望]
跳转到http://m.weibo.cn/u/3196963860 界面
运行环境
android studio 2.2.3
[系统版本]
android6.0 api23
[浏览器版本]

[IDE版本]

[mui版本]

附件
[代码片段]
示例代码中的webview_embed.html
[报错]
W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 12303
I/shutao1: showWebview == time1510826723889
E/shutao: new -- JSNWindow=http://m.weibo.cn/u/3196963860
V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@5a01c3c
D/EgretLoader: EgretLoader(Context context)
D/EgretLoader: The context is not activity
W/System.err: java.lang.IllegalStateException: SonicEngine::createInstance() needs to be called before SonicEngine::getInstance()
W/System.err: at io.dcloud.sonic.SonicEngine.getInstance(SonicEngine.java:76)
W/System.err: at io.dcloud.common.adapter.ui.AdaWebview.loadUrl(AdaWebview.java:325)
W/System.err: at io.dcloud.feature.ui.e.a(UIWidgetMgr.java:756)
W/System.err: at io.dcloud.feature.ui.e.a(UIWidgetMgr.java:577)
W/System.err: at io.dcloud.feature.ui.e.a(UIWidgetMgr.java:353)
W/System.err: at io.dcloud.feature.ui.UIFeatureImpl.execute(UIFeatureImpl.java:32)
W/System.err: at io.dcloud.feature.b.a(FeatureMgr.java:336)
W/System.err: at io.dcloud.feature.b.processEvent(FeatureMgr.java:141)
W/System.err: at io.dcloud.common.b.a.dispatchEvent(Core.java:546)
W/System.err: at io.dcloud.common.b.b.k.processEvent(WindowMgr.java:137)
W/System.err: at io.dcloud.common.b.b.h.exec(DHWebview.java:177)
W/System.err: at io.dcloud.common.b.b.h$1.execute(DHWebview.java:124)
W/System.err: at io.dcloud.common.adapter.util.MessageHandler$1.handleMessage(MessageHandler.java:23)
W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
W/System.err: at android.os.Looper.loop(Looper.java:154)
W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5524)
W/System.err: at java.lang.reflect.Method.invoke(Native Method)
W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'io.dcloud.common.adapter.ui.AdaFrameItem io.dcloud.feature.ui.b.f()' on a null object reference
W/System.err: at io.dcloud.feature.ui.c.c(NWindow.java:261)
W/System.err: at io.dcloud.feature.ui.c.a(NWindow.java:854)
W/System.err: at io.dcloud.feature.ui.e.a(UIWidgetMgr.java:359)
W/System.err: at io.dcloud.feature.ui.UIFeatureImpl.execute(UIFeatureImpl.java:32)
W/System.err: at io.dcloud.feature.b.a(FeatureMgr.java:336)
W/System.err: at io.dcloud.feature.b.processEvent(FeatureMgr.java:141)
W/System.err: at io.dcloud.common.b.a.dispatchEvent(Core.java:546)
W/System.err: at io.dcloud.common.b.b.k.processEvent(WindowMgr.java:137)
W/System.err: at io.dcloud.common.b.b.h.exec(DHWebview.java:177)
W/System.err: at io.dcloud.common.b.b.h$1.execute(DHWebview.java:124)
W/System.err: at io.dcloud.common.adapter.util.MessageHandler$1.handleMessage(MessageHandler.java:23)
W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
W/System.err: at android.os.Looper.loop(Looper.java:154)
W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5524)
W/System.err: at java.lang.reflect.Method.invoke(Native Method)
W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
E/Html5Plus-SplashClosed: 1510826725274
V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@5036235
V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@45b26ca
V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@45b7af7
V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@c74cd64
W/System.err: java.net.SocketException: Socket closed
W/System.err: at libcore.io.Posix.accept(Native Method)
W/System.err: at libcore.io.BlockGuardOs.accept(BlockGuardOs.java:63)
W/System.err: at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:89)
W/System.err: at java.net.ServerSocket.implAccept(ServerSocket.java:217)
W/System.err: at java.net.ServerSocket.accept(ServerSocket.java:141)
W/System.err: at io.dcloud.common.util.net.http.LocalServer.run(LocalServer.java:62)
W/System.err: at java.lang.Thread.run(Thread.java:818)

[安装包]
http://ask.dcloud.net.cn/article/103 中显示的android最新sdk下面
Android-SDK@1.9.9.38184_20171023.zip
联系方式
[QQ] 3539690284
[电话]

2017-11-16 18:15 2 条评论 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复