[英]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.