简体   繁体   中英

Uncaught ReferenceError: PhoneGap is not Defined

I am getting a strange issue regarding phonegap usage. LogCat is spitting out an uncaught reference error regarding phonegap not being defined which is killing my application. I am running cordova 2.2, and I am very new to phonegap. Does anyone have any idea what might cause this? The cordova file is being hotloaded into my application as a package, but even if I switch it and statically load it within the html I still get the error! Please help!

    CordovaLog: Uncaught ReferenceError: PhoneGap is not Defined

This is mainly occuring when I use the SQLite Plugin by Brody, but it also happens with other phonegap functionality. Also, if I add an event listener for device ready, it never fires! (I am guessing it already fired before the listener was added because it is nested pretty deep.)

You are using some out of date code the PhoneGap object is now "cordova". You should look for an updated version of that plugin.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM