Start a new topic

Android - Cant seem to load

Android - Cant seem to load


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:20.842: D/DroidGap(14407): DroidGap.init()

01-25 16:03:20.852: D/CordovaWebView(14407): >>> loadUrl(file:///android_asset/www/index.html)

01-25 16:03:20.852: D/PluginManager(14407): init()

01-25 16:03:20.852: D/CordovaWebView(14407): >>> loadUrlNow()

01-25 16:03:20.852: D/DroidGap(14407): Resuming the App

01-25 16:03:20.862: V/chromium(14407): external/chromium/net/host_resolver_helper/host_resolver_helper.cc:66: DNSPreResolver::Init got hostprovider:0x6101b010

01-25 16:03:20.862: V/chromium(14407): external/chromium/net/base/host_resolver_impl.cc:1510: HostResolverImpl::SetPreresolver preresolver:0x4003fe78

01-25 16:03:20.862: D/HostStatisticManager(14407): netstack: DNS Host Prioritization is: ON, Version: 5.0.1

01-25 16:03:20.862: D/(14407): dl error message Cannot load library: link_image:   206 could not load needed library 'libcneapiclient.so' for 'libtcpfinaggr.so' (load_library: Library 'libcneapiclient.so' not found)

01-25 16:03:20.862: D/Socket_Pool(14407): Failed to create TCP Fin Aggregation interface.

01-25 16:03:20.862: D/Socket_Pool(14407): netstack: CloseUnusedSockets is ON

01-25 16:03:20.862: D/Socket_Pool(14407): netstack: system net.statistics value: 0

01-25 16:03:20.862: D/Socket_Pool(14407): Failed to create TCP Fin Aggregation interface.

01-25 16:03:20.862: D/Socket_Pool(14407): netstack: CloseUnusedSockets is ON

01-25 16:03:20.862: D/Socket_Pool(14407): netstack: system net.statistics value: 0

01-25 16:03:20.862: D/(14407): external/chromium/net/http/http_getzip_factory.cc: libgetzip.so successfully loaded

01-25 16:03:20.862: D/(14407): external/chromium/net/http/http_getzip_factory.cc,: GETzip initializing method was found in libgetzip.so

01-25 16:03:20.862: D/(14407): netstack: Getzip is: ON, Version: 5.0.1

01-25 16:03:20.882: D/DroidGap(14407): onMessage(onPageStarted,file:///android_asset/www/index.html)

01-25 16:03:20.882: D/SoftKeyboardDetect(14407): Ignore this event

01-25 16:03:20.912: I/Adreno200-EGL(14407): <qeglDrvAPI_eglInitialize:294>: EGL 1.4 QUALCOMM build: Nondeterministic AU_msm8960_JB_REL_RB3.1_CL2814726_release_AU (CL2814726)

01-25 16:03:20.912: I/Adreno200-EGL(14407): Build Date: 09/30/12 Sun

01-25 16:03:20.912: I/Adreno200-EGL(14407): Local Branch: 

01-25 16:03:20.912: I/Adreno200-EGL(14407): Remote Branch: m/jb_rel_rb3.1

01-25 16:03:20.912: I/Adreno200-EGL(14407): Local Patches: NONE

01-25 16:03:20.912: I/Adreno200-EGL(14407): Reconstruct Branch: NOTHING

01-25 16:03:20.922: D/chromium(14407): Unknown chromium error: -6

01-25 16:03:20.922: D/chromium(14407): Unknown chromium error: -6

01-25 16:03:20.992: D/memalloc(14407): ion: Mapped buffer base:0x61cbb000 size:8355840 offset:0 fd:80

01-25 16:03:20.992: D/memalloc(14407): ion: Mapped buffer base:0x5de0a000 size:4096 offset:0 fd:82

01-25 16:03:21.062: D/memalloc(14407): ion: Mapped buffer base:0x62781000 size:8355840 offset:0 fd:85

01-25 16:03:21.062: D/memalloc(14407): ion: Mapped buffer base:0x62673000 size:4096 offset:0 fd:87

01-25 16:03:21.062: W/dalvikvm(14407): disableGcForExternalAlloc: false

01-25 16:03:21.082: D/SoftKeyboardDetect(14407): Ignore this event

01-25 16:03:21.092: D/memalloc(14407): ion: Mapped buffer base:0x6313c000 size:8355840 offset:0 fd:89

01-25 16:03:21.092: D/memalloc(14407): ion: Mapped buffer base:0x62681000 size:4096 offset:0 fd:91

01-25 16:03:21.172: D/Cordova(14407): onPageFinished(file:///android_asset/www/index.html)

01-25 16:03:21.172: D/DroidGap(14407): onMessage(onNativeReady,null)

01-25 16:03:21.172: D/DroidGap(14407): onMessage(onPageFinished,file:///android_asset/www/index.html)

01-25 16:03:21.182: E/SQLiteLog(14407): (14) cannot open file at line 30178 of

01-25 16:03:21.182: E/SQLiteLog(14407): (14) os_unix.c:30178: (2) open(/CachedGeoposition.db) - 

01-25 16:03:21.182: D/WebKit(14407): ERROR: 

01-25 16:03:21.182: D/WebKit(14407): SQLite database failed to load from /CachedGeoposition.db

01-25 16:03:21.182: D/WebKit(14407): Cause - unable to open database file

01-25 16:03:21.182: D/WebKit(14407): external/webkit/Source/WebCore/platform/sql/SQLiteDatabase.cpp(71) : bool WebCore::SQLiteDatabase::open(const WTF::String&, bool)

01-25 16:03:21.202: D/CordovaNetworkManager(14407): Connection Type: 3g

01-25 16:03:21.202: D/DroidGap(14407): onMessage(networkconnection,3g)

01-25 16:03:21.202: D/CordovaNetworkManager(14407): Connection Type: 3g

01-25 16:03:21.212: D/DroidGap(14407): onMessage(spinner,stop)

01-25 16:03:21.222: W/System.err(14407): java.lang.ClassNotFoundException: com.wikitude.phonegap.WikitudePluginVuforia

01-25 16:03:21.222: W/System.err(14407): at java.lang.Class.classForName(Native Method)

01-25 16:03:21.222: W/System.err(14407): at java.lang.Class.forName(Class.java:217)

01-25 16:03:21.222: W/System.err(14407): at java.lang.Class.forName(Class.java:172)

01-25 16:03:21.222: W/System.err(14407): at org.apache.cordova.api.PluginEntry.getClassByName(PluginEntry.java:102)

01-25 16:03:21.222: W/System.err(14407): at org.apache.cordova.api.PluginEntry.createPlugin(PluginEntry.java:78)

01-25 16:03:21.233: W/System.err(14407): at org.apache.cordova.api.PluginManager.getPlugin(PluginManager.java:258)

01-25 16:03:21.233: W/System.err(14407): at org.apache.cordova.api.PluginManager.exec(PluginManager.java:216)

01-25 16:03:21.233: W/System.err(14407): at org.apache.cordova.ExposedJsApi.exec(ExposedJsApi.java:45)

01-25 16:03:21.233: W/System.err(14407): at android.webkit.JWebCoreJavaBridge.sharedTimerFired(Native Method)

01-25 16:03:21.233: W/System.err(14407): at android.webkit.JWebCoreJavaBridge.sharedTimerFired(Native Method)

01-25 16:03:21.233: W/System.err(14407): at android.webkit.JWebCoreJavaBridge.fireSharedTimer(JWebCoreJavaBridge.java:93)

01-25 16:03:21.233: W/System.err(14407): at android.webkit.JWebCoreJavaBridge.handleMessage(JWebCoreJavaBridge.java:115)

01-25 16:03:21.233: W/System.err(14407): at android.os.Handler.dispatchMessage(Handler.java:99)

01-25 16:03:21.233: W/System.err(14407): at android.os.Looper.loop(Looper.java:155)

01-25 16:03:21.233: W/System.err(14407): at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:851)

01-25 16:03:21.233: W/System.err(14407): at java.lang.Thread.run(Thread.java:864)

01-25 16:03:21.233: W/System.err(14407): Caused by: java.lang.NoClassDefFoundError: com/wikitude/phonegap/WikitudePluginVuforia

01-25 16:03:21.233: W/System.err(14407): ... 16 more

01-25 16:03:21.233: W/System.err(14407): Caused by: java.lang.ClassNotFoundException: com.wikitude.phonegap.WikitudePluginVuforia

01-25 16:03:21.233: W/System.err(14407): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)

01-25 16:03:21.233: W/System.err(14407): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)

01-25 16:03:21.233: W/System.err(14407): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)

01-25 16:03:21.233: W/System.err(14407): ... 16 more

01-25 16:03:21.233: I/System.out(14407): Error adding plugin com.wikitude.phonegap.WikitudePluginVuforia.

01-25 16:03:21.463: D/memalloc(14407): ion: Mapped buffer base:0x64010000 size:8355840 offset:0 fd:93

01-25 16:03:21.463: D/memalloc(14407): ion: Mapped buffer base:0x62738000 size:4096 offset:0 fd:95

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:03:23.195: D/DroidGap(14407): onMessage(spinner,stop)

01-25 16:03:31.173: W/dalvikvm(14407): disableGcForExternalAlloc: true

01-25 16:03:31.243: W/dalvikvm(14407): disableGcForExternalAlloc: false

01-25 16:03:31.904: W/dalvikvm(14407): disableGcForExternalAlloc: true

01-25 16:03:32.364: W/dalvikvm(14407): disableGcForExternalAlloc: false

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?

 

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

Link: 

https://github.com/Wikitude/wikitude-phonegap/blob/master/Android/README.md#setup---extended-plugin-incl-vuforia-imagerecognition-optional

kind regards,

Markus

It seems their is an error with the Documentation that Wikitude has on their GitHub. It should not be:

 <plugin name="WikitudePlugin" value="com.wikitude.phonegap.WikitudePluginVuforia"/>

It should be:

<plugin name="WikitudePlugin" value="com.wikitude.phonegap.WikitudePluginExtended"/>
Login or Signup to post a comment