Whenever I load the built phonegap android app (built from scratch, not a demo) I get an error from the Web Console saying that 'Object has no method 'report''
01-25 16:03:20.682: E/Trace(14407): error opening trace file: No such file or directory (2)
01-25 16:03:20.792: D/webcoreglue(14407): netstack: Memory Cache feature is ON
01-25 16:03:20.832: I/CordovaLog(14407): Changing log level to DEBUG(3)
01-25 16:03:20.832: I/CordovaLog(14407): Found preference for useBrowserHistory=true
01-25 16:03:20.832: D/CordovaLog(14407): Found preference for useBrowserHistory=true
01-25 16:03:20.832: I/CordovaLog(14407): Found preference for exit-on-suspend=false
01-25 16:03:20.832: D/CordovaLog(14407): Found preference for exit-on-suspend=false
01-25 16:03:20.842: D/JsMessageQueue(14407): Set native->JS mode to 2
01-25 16:03:21.463: D/CordovaLog(14407): Received Event: deviceready
01-25 16:03:21.463: I/Web Console(14407): Received Event: deviceready at file:///android_asset/www/js/index.js:62
01-25 16:03:21.463: D/CordovaLog(14407): processMessage failed: Message: F02 WikitudePlugin65089646 sClass not found
01-25 16:03:21.463: I/Web Console(14407): processMessage failed: Message: F02 WikitudePlugin65089646 sClass not found at file:///android_asset/www/cordova-2.3.0.js:1168
01-25 16:03:21.463: D/CordovaLog(14407): processMessage failed: Error: TypeError: Object #<Object> has no method 'report'
01-25 16:03:21.463: I/Web Console(14407): processMessage failed: Error: TypeError: Object #<Object> has no method 'report' at file:///android_asset/www/cordova-2.3.0.js:1169
01-25 16:03:21.483: D/CordovaLog(14407): processMessage failed: Stack: TypeError: Object #<Object> has no method 'report'
01-25 16:03:21.483: D/CordovaLog(14407): at Object.onDeviceNotSupportedCallback (file:///android_asset/www/js/index.js:40:13)
01-25 16:03:21.483: D/CordovaLog(14407): at Object.fail (file:///android_asset/www/js/WikitudePlugin.js:115:28)
01-25 16:03:21.483: D/CordovaLog(14407): at Object.callbackFromNative (file:///android_asset/www/cordova-2.3.0.js:290:43)
01-25 16:03:21.483: D/CordovaLog(14407): at processMessage (file:///android_asset/www/cordova-2.3.0.js:1163:21)
01-25 16:03:21.483: D/CordovaLog(14407): at Function.processMessages (file:///android_asset/www/cordova-2.3.0.js:1201:17)
01-25 16:03:21.483: D/CordovaLog(14407): at Object.androidExec (file:///android_asset/www/cordova-2.3.0.js:1063:21)
01-25 16:03:21.483: D/CordovaLog(14407): at Object.<anonymous> (file:///android_asset/www/js/WikitudePlugin.js:71:17)
01-25 16:03:21.483: D/CordovaLog(14407): at .<anonymous> (file:///android_asset/www/js/index.js:50:24)
01-25 16:03:21.483: D/CordovaLog(14407): at .fire (file:///android_asset/www/cordova-2.3.0.js:690:23)
01-25 16:03:21.483: D/CordovaLog(14407): at file:///android_asset/www/cordova-2.3.0.js:219:47
01-25 16:03:21.483: I/Web Console(14407): processMessage failed: Stack: TypeError: Object #<Object> has no method 'report'
01-25 16:03:21.483: I/Web Console(14407): at Object.onDeviceNotSupportedCallback (file:///android_asset/www/js/index.js:40:13)
01-25 16:03:21.483: I/Web Console(14407): at Object.fail (file:///android_asset/www/js/WikitudePlugin.js:115:28)
01-25 16:03:21.483: I/Web Console(14407): at Object.callbackFromNative (file:///android_asset/www/cordova-2.3.0.js:290:43)
01-25 16:03:21.483: I/Web Console(14407): at processMessage (file:///android_asset/www/cordova-2.3.0.js:1163:21)
01-25 16:03:21.483: I/Web Console(14407): at Function.processMessages (file:///android_asset/www/cordova-2.3.0.js:1201:17)
01-25 16:03:21.483: I/Web Console(14407): at Object.androidExec (file:///android_asset/www/cordova-2.3.0.js:1063:21)
01-25 16:03:21.483: I/Web Console(14407): at Object.<anonymous> (file:///android_asset/www/js/WikitudePlugin.js:71:17)
01-25 16:03:21.483: I/Web Console(14407): at .<anonymous> (file:///android_asset/www/js/index.js:50:24)
01-25 16:03:21.483: I/Web Console(14407): at .fire (file:///android_asset/www/cordova-2.3.0.js:690:23)
01-25 16:03:21.483: I/Web Console(14407): at file:///android_asset/www/cordova-2.3.0.js:219:47 at file:///android_asset/www/cordova-2.3.0.js:1170
01-25 16:04:17.362: D/DroidGap(14407): Paused the application!
01-25 16:04:17.362: D/CordovaWebView(14407): Handle the pause
Any ideas?
M
Markus Eder
said
over 10 years ago
Hi!
it seems that phonegap cannot find the WikitudePluginVuforia class that needs to be in your application when you want to include Vuforia Image Recognition into your application.
Please make sure you included all needed components as can be found in the Documentation of the Phonegap plugin
Alex Farnsworth