PhoneGap的+ JQM应用打破了的Andr​​oid 4.0.3 [英] PhoneGap + JQM App breaks in Android 4.0.3

查看:101
本文介绍了PhoneGap的+ JQM应用打破了的Andr​​oid 4.0.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近升级到ICS 4.0.3,并试图部署我的PhoneGap(V 1.4.1)和JQM(1.1.0-RC-1)的应用,但它的第一个页面加载后分解。有在那些给我的线索logcat的两个错误,但我真的不明白怎么回事。

I recently upgraded to ICS 4.0.3 and tried to deploy my PhoneGap (v 1.4.1) and JQM (1.1.0-rc-1) application but it breaks down after the first page load. There are two errors in the logcat that are giving me clues but I don't really understand whats going on.

首先,我得

 04-05 02:36:38.366: D/chromium(1335): Unknown chromium error: -6

随后不少

 04-05 02:36:38.837: E/libEGL(1335): call to OpenGL ES API with no current context (logged once per thread)
 04-05 02:51:03.024: D/ShaderProgram(2887): couldn't load the vertex shader!

我不知道怎么回事,我可以看到第二个页面呈现的方式约1/4通过再没有什么。这种电脑采用了精细的所有其他Android建立,但未能在4.0.3。在这两个模拟器和实际的设备。我发现周围什么称其铬孤单得错误是一个工作讲几句类似的问题。我ATLEAST需要弄清楚如果罪魁祸首是JQM或Android浏览器或哪些元素是造成此错误。

I don't know whats going on and I can see that the second page renders about 1/4 of the way through then nothing. This ran fine in all other android builds but fails on 4.0.3. in both emulator and actual device. I found a few similar questions saying its an error with chromium theres gotta be a work around or something. I atleast need to figure out if the culprit is JQM or the android browser or what elements are causing this error.

推荐答案

我经历过类似的东西,jQuery的getScript加入脚本没有工作在所有为Android 4(和它的工作,每其他平台)。我结束了在这里发现了一个简单的JavaScript函数替换getScript加入(loadJs):加载外部JavaScript文件

I experienced something similar, jquery getScript was not working at all for Android 4 (and it worked for every other platform). I ended up replacing getScript with a simple javascript function found here (loadJs): Load External JavaScript File

这篇关于PhoneGap的+ JQM应用打破了的Andr​​oid 4.0.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆