初始化Cordova:JSON时出错 [英] Error initializing Cordova:JSON Error
问题描述
当我尝试在Android Simulator中启动我的phonegap应用程序时,出现初始化Cordova:JSON错误的错误。
我遵循了这个链接来设置Phonegap的环境。我正在使用Cordova-2.4.0以及我自己的带有jQuery的HTML,CSS和JS文件集。仅当HTML,CSS,JS文件时,该应用程序才能运行,无需更改PhoneGap便将其托管在Web服务器中。
I am getting Error Initializing Cordova:JSON Error when i try to launch my phonegap app in Android Simulator. I have followed this link to setup the environment for Phonegap.I am using Cordova-2.4.0 with my own set of HTML, CSS and JS files with jQuery.The app is running when only the HTML, CSS, JS files, without PhoneGap changes are hosted in a web server.
我们将不胜感激。
推荐答案
我更改了 deviceready
function / js的调用顺序。在 deviceReady
方法之后,将加载所有其他js文件。
这解决了我的问题
I changed the order in which the deviceready
function/js is called. After the deviceReady
method all the other js files are loaded.
This solved my problem
这篇关于初始化Cordova:JSON时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!