我正在尝试使用离子和Angular开发使用MobileFirst的应用程序。只要我在预览中,我的应用运行正常,但在设备上运行时我会遇到奇怪的错误。
10-20 14:48:27.185: D/CordovaWebView(17759): CordovaWebView is running on device made by: samsung
10-20 14:48:27.190: I/CordovaWebView(17759): Disabled addJavascriptInterface() bridge since Android version is old.
10-20 14:48:27.195: I/dalvikvm(17759): Could not find method android.webkit.CookieManager.setAcceptThirdPartyCookies, referenced from method com.worklight.androidgap.plugin.WLInitializationPlugin.initialize
10-20 14:48:27.195: W/dalvikvm(17759): VFY: unable to resolve virtual method 512: Landroid/webkit/CookieManager;.setAcceptThirdPartyCookies (Landroid/webkit/WebView;Z)V
10-20 14:48:27.195: D/dalvikvm(17759): VFY: replacing opcode 0x6e at 0x001a
10-20 14:48:27.205: D/WML_SISO(17759): InitPasteboardJni
10-20 14:48:27.245: W/webcore(17759): java.lang.Throwable: EventHub.removeMessages(int what = 107) is not supported before the WebViewCore is set up.
10-20 14:48:27.245: W/webcore(17759): at android.webkit.WebViewCore$EventHub.removeMessages(WebViewCore.java:2678)
10-20 14:48:27.245: W/webcore(17759): at android.webkit.WebViewCore$EventHub.access$13100(WebViewCore.java:1361)
10-20 14:48:27.245: W/webcore(17759): at android.webkit.WebViewCore.removeMessages(WebViewCore.java:2790)
10-20 14:48:27.245: W/webcore(17759): at android.webkit.WebView.sendOurVisibleRect(WebView.java:3966)
10-20 14:48:27.245: W/webcore(17759): at android.webkit.ZoomManager.setZoomScale(ZoomManager.java:1020)
10-20 14:48:27.245: W/webcore(17759): at android.webkit.ZoomManager.access$2100(ZoomManager.java:57)
10-20 14:48:27.245: W/webcore(17759): at android.webkit.ZoomManager$PostScale.run(ZoomManager.java:1581)
10-20 14:48:27.245: W/webcore(17759): at android.os.Handler.handleCallback(Handler.java:605)
10-20 14:48:27.245: W/webcore(17759): at android.os.Handler.dispatchMessage(Handler.java:92)
10-20 14:48:27.245: W/webcore(17759): at android.os.Looper.loop(Looper.java:137)
10-20 14:48:27.245: W/webcore(17759): at android.app.ActivityThread.main(ActivityThread.java:4517)
10-20 14:48:27.245: W/webcore(17759): at java.lang.reflect.Method.invokeNative(Native Method)
10-20 14:48:27.245: W/webcore(17759): at java.lang.reflect.Method.invoke(Method.java:511)
10-20 14:48:27.245: W/webcore(17759): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993)
10-20 14:48:27.245: W/webcore(17759): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760)
10-20 14:48:27.245: W/webcore(17759): at dalvik.system.NativeStart.main(Native Method)
10-20 14:48:27.285: V/(17759): NotificationPresenterImpl::setSettingsValue 0
10-20 14:48:27.285: V/(17759): NotificationPresenterImpl::setSettingsValue 0
10-20 14:48:27.290: D/webkit(17759): Firewall not null
10-20 14:48:27.290: D/webkit(17759): euler: isUrlBlocked = false
是否与特定版本的cordova或应用程序绑定...有点混乱
答案 0 :(得分:0)
我参与了该项目,并在移动浏览器模拟器(实际上只预览了网络资源而不是任何特定于Android的代码)以及Android模拟器和应用程序两者中运行它 - 这意味着它不会在Android模拟器中崩溃。
检查这是否特定于这些三星设备,或者同时也是不同品牌的崩溃,或者它是仅在Android 4.x中还是在5.x中失败(我在5.x中测试过)。