I have a Worklight
project (a hybrid app) that I'm trying to deploy to Android. At the moment, it has a cordova
plugin which is uses for PhoneGap
stuff. My project isn't currently using the cordova plugin, but there are hundreds of calls to it so I guess it needs to be present either way (it's packaged in this way by worklight and so I'm not particularly well informed about how it operates).
My problem is that the Android emulator is constantly throwing the same sort of problem when it runs the project as below:
06-13 14:20:57.385: E/Web Console(795): Uncaught TypeError: Object # has no method 'exec' at file:///data/data/com.Test/files/www/default/wlclient/js/wlgap.android.js:697
If it isn't that exact error, it's a similar error which complains about cordova in one way or another. I have JS files that are littered with cordova.exec calls and I think this is where it's failing as it cannot find that method. I'm using cordova 1.6.1 that is defined as cordova.js as part of my Android project.
I'm not really sure how else to define my problem as I'm at a loss as to where to start to get it to play ball. Any suggestions are welcome. If you require further explanation of my issue, let me know.