2015-10-20 61 views
0

我正在嘗試使用MobileFirst使用離子和角度來開發應用程序。我的應用程序運行良好,只要我在預覽中,但在設備上運行時,我收到奇怪的錯誤。使用離子和MobileFirst時運行到Android設備時,應用程序崩潰

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 

它是依賴於特定版本科爾多瓦或應用程序的...有點迷茫

+0

提供您的項目。 –

+0

我應該在哪裏上傳? – Amit

+0

無論你想要什麼。 Dropbox,谷歌Docs ... –

回答

0

我把這個項目並運行它在這兩個移動瀏覽器模擬器(這真的只是預覽的網絡資源,而不是任何Android特定的代碼)以及Android模擬器和應用程序都可以使用 - 意味着它在Android模擬器中沒有崩潰。

檢查這是特定於那些三星設備,或者也崩潰在不同的品牌以及它是否僅在Android 4.x或也在5.x(我在5.x中測試)失敗。

+0

我剛剛在5.x設備嘗試,並得到預期的結果,看起來像是與4.x版本失敗。 – Amit

相關問題