简体   繁体   English

Phonegap应用程序在运行Android 4.0时引发错误,但在Android 2.3及更低版本上可以正常运行

[英]Phonegap application throws error running Android 4.0, but works fine on Android 2.3 and below

I have a problem with PhoneGap mobile app running on Android version 4.0.3. 我在Android 4.0.3版上运行的PhoneGap移动应用程序遇到问题。 I am currently using PhoneGap version 1.5.0. 我当前正在使用PhoneGap版本1.5.0。 And it works perfectly on Android 2.3 and all the lower versions of Android. 它可以在Android 2.3和所有较低版本的Android上完美运行。 However, when I try to run it on Android 4.0 - it throws this dialog error... 但是,当我尝试在Android 4.0上运行它时-引发此对话框错误...

Application error - A network error occurred. 应用程序错误-发生网络错误。 (file:///android_asset/www/messagedetails.html?Id=29) (file:///android_asset/www/messagedetails.html?Id = 29)

Possible that phonegap does network operations on the UI thread. phonegap可能在UI线程上执行网络操作。 Every network operation on the UI thread causes an exception in Android 4.0 this could be your problem. UI线程上的每个网络操作都会在Android 4.0中导致异常,这可能是您的问题。

You just try with phonegap 1.9.0 version. 您只需尝试使用phonegap 1.9.0版本。 Because that phonegap 1.5.0 version build may not supported for android 2.3.3+ versions. 因为android 2.3.3+版本可能不支持该phonegap 1.5.0版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android我的应用程序可以在2.3上运行,但即使在4.0上也无法启动 - Android My application works on 2.3 fine but doesn't start even on 4.0 Android 4.0中的类无响应-在2.3及以下版本中有效 - No response from class in Android 4.0 - works in 2.3 and below android:ContentResolver在4.0上有效,但在2.3上无效 - android: ContentResolver works on 4.0 but not on 2.3 Android代码可在2.3上使用,但不能在4.0上使用 - Android Code Works On 2.3 But Not On 4.0 Android主要XML在2.3和4.0上的工作方式有所不同 - android main XML works diffrent on 2.3 and 4.0 在Android上捕获媒体按钮> = 4.0(适用于2.3) - Capture media button on Android >=4.0 (works on 2.3) Phonegap应用程序不适用于android 4.0 - Phonegap application not working with android 4.0 应用程序适用于android 2.2,但不适用于2.3 - Application works on android 2.2, but not on 2.3 在Android 4.0 / 4.0.3上运行Cordova / Phonegap 1.7应用程序时出错 - Error running Cordova/Phonegap 1.7 app on Android 4.0/4.0.3 如何在Android 2.3以下的版本中使用phonegap应用程序显示Numeric Keypaid - How to display Numeric Keypaid using phonegap application on below Android version 2.3
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM