[aerogear-dev] errors in cordova / android app

Erik Jan de Wit edewit at redhat.com
Fri Sep 5 03:25:55 EDT 2014


Hi,

Seems like a problem with the google play libs, what device are you installing it on? Do you have a google account setup on it?

Cheers,
	Erik Jan

On 4 Sep,2014, at 12:24 , hagai.sela <hagai.sela at gmail.com> wrote:

> Hi,
> I am trying to use aerogear to send push notifications to cordova
> application which runs on my android device.
> I followed this tutorial:
> http://aerogear.org/docs/guides/aerogear-push-cordova-android/cordova-android-app/
> When my app loads in the device I am getting this error:
> 
> Could not find method
> com.google.android.gms.gcm.GoogleCloudMessaging.getInstance, referenced from
> method
> org.jboss.aerogear.android.impl.unifiedpush.AeroGearGCMPushRegistrar$2.get
> 
> Help, please. This is the complete log file:
> 
> 09-04 12:45:09.724: I/dalvikvm(14690): Debugger is active
> 09-04 12:45:09.884: I/System.out(14690): Debugger has connected
> 09-04 12:45:09.884: I/System.out(14690): waiting for debugger to settle...
> 09-04 12:45:10.084: I/System.out(14690): waiting for debugger to settle...
> 09-04 12:45:10.284: I/System.out(14690): waiting for debugger to settle...
> 09-04 12:45:10.484: I/System.out(14690): waiting for debugger to settle...
> 09-04 12:45:10.684: I/System.out(14690): waiting for debugger to settle...
> 09-04 12:45:10.884: I/System.out(14690): waiting for debugger to settle...
> 09-04 12:45:11.084: I/System.out(14690): waiting for debugger to settle...
> 09-04 12:45:11.284: I/System.out(14690): waiting for debugger to settle...
> 09-04 12:45:11.484: I/System.out(14690): waiting for debugger to settle...
> 09-04 12:45:11.684: I/System.out(14690): waiting for debugger to settle...
> 09-04 12:45:11.884: I/System.out(14690): debugger has settled (1310)
> 09-04 12:45:11.914: I/CordovaLog(14690): Changing log level to DEBUG(3)
> 09-04 12:45:11.914: I/CordovaLog(14690): Found start page location:
> index.html
> 09-04 12:45:11.914: D/Whitelist(14690): Unlimited access to network
> resources
> 09-04 12:45:11.914: D/CordovaActivity(14690): CordovaActivity.onCreate()
> 09-04 12:45:11.924: V/WebViewChromium(14690): Binding Chromium to the
> background looper Looper (main, tid 1) {42832650}
> 09-04 12:45:11.934: I/chromium(14690): [INFO:library_loader_hooks.cc(112)]
> Chromium logging enabled: level = 0, default verbosity = 0
> 09-04 12:45:11.934: I/BrowserProcessMain(14690): Initializing chromium
> process, renderers=0
> 09-04 12:45:11.944: W/chromium(14690): [WARNING:proxy_service.cc(888)] PAC
> support disabled because there is no system implementation
> 09-04 12:45:11.954: I/Adreno-EGL(14690): <qeglDrvAPI_eglInitialize:385>: EGL
> 1.4 QUALCOMM build:  ()
> 09-04 12:45:11.954: I/Adreno-EGL(14690): OpenGL ES Shader Compiler Version:
> E031.24.00.02
> 09-04 12:45:11.954: I/Adreno-EGL(14690): Build Date: 01/20/14 Mon
> 09-04 12:45:11.954: I/Adreno-EGL(14690): Local Branch:
> PMH2-KK_3.5-RB1-AU61-554722-586267-set2
> 09-04 12:45:11.954: I/Adreno-EGL(14690): Remote Branch: 
> 09-04 12:45:11.954: I/Adreno-EGL(14690): Local Patches: 
> 09-04 12:45:11.954: I/Adreno-EGL(14690): Reconstruct Branch: 
> 09-04 12:45:12.024: D/CordovaWebView(14690): CordovaWebView is running on
> device made by: LGE
> 09-04 12:45:12.034: D/JsMessageQueue(14690): Set native->JS mode to 2
> 09-04 12:45:12.034: D/CordovaActivity(14690): CordovaActivity.init()
> 09-04 12:45:12.054: D/CordovaWebView(14690): >>>
> loadUrl(file:///android_asset/www/index.html)
> 09-04 12:45:12.054: D/PluginManager(14690): init()
> 09-04 12:45:12.064: D/CordovaWebView(14690): >>> loadUrlNow()
> 09-04 12:45:12.064: D/dalvikvm(14690): Note: class
> Lcom/lge/mdm/manager/ILGMDMDevicePolicyManager$Stub; has 319 unimplemented
> (abstract) methods
> 09-04 12:45:12.094: I/CordovaLog(14690): Changing log level to DEBUG(3)
> 09-04 12:45:12.104: I/CordovaLog(14690): Found start page location:
> index.html
> 09-04 12:45:12.104: D/Whitelist(14690): Unlimited access to network
> resources
> 09-04 12:45:12.104: D/CordovaActivity(14690): Resuming the App
> 09-04 12:45:12.104: D/CordovaActivity(14690): CB-3064: The errorUrl is null
> 09-04 12:45:12.104: W/BaseRuntimeLoader(14690): don't
> searchcom.lge.telephony.msim.QcomMSimTelephonyManagerAdaptor class
> 09-04 12:45:12.124: W/BaseRuntimeLoader(14690): don't
> searchcom.lge.telephony.msim.MtkMSimTelephonyManagerAdaptor class
> 09-04 12:45:12.124: W/BaseRuntimeLoader(14690): don't
> searchcom.lge.telephony.msim.QcomMSimTelephonyManagerAdaptor class
> 09-04 12:45:12.124: W/BaseRuntimeLoader(14690): don't
> searchcom.lge.telephony.msim.MtkMSimTelephonyManagerAdaptor class
> 09-04 12:45:12.134: D/CordovaActivity(14690): Paused the application!
> 09-04 12:45:12.134: D/CordovaWebView(14690): Handle the pause
> 09-04 12:45:12.194: D/OpenGLRenderer(14690): Enabling debug mode 0
> 09-04 12:45:12.214: D/OpenGLRenderer(14690): GL error from OpenGLRenderer:
> 0x502
> 09-04 12:45:12.214: E/OpenGLRenderer(14690):   GL_INVALID_OPERATION
> 09-04 12:45:12.234: I/ActivityManager(14690): Timeline: Activity_idle id:
> android.os.BinderProxy at 42834218 time:6453809
> 09-04 12:45:12.244: D/CordovaWebViewClient(14690):
> onPageStarted(file:///android_asset/www/index.html)
> 09-04 12:45:12.244: D/CordovaActivity(14690):
> onMessage(onPageStarted,file:///android_asset/www/index.html)
> 09-04 12:45:12.294: D/CordovaLog(14690): : Line 1 : exception firing pause
> event from native
> 09-04 12:45:12.294: I/chromium(14690): [INFO:CONSOLE(1)] "exception firing
> pause event from native", source:  (1)
> 09-04 12:45:12.314: D/CordovaLog(14690):
> file:///android_asset/www/index.html: Line 25 : Viewport target-densitydpi
> is not supported.
> 09-04 12:45:12.314: I/chromium(14690): [INFO:CONSOLE(25)] "Viewport
> target-densitydpi is not supported.", source:
> file:///android_asset/www/index.html (25)
> 09-04 12:45:12.424: D/CordovaWebViewClient(14690):
> onPageFinished(file:///android_asset/www/index.html)
> 09-04 12:45:12.424: D/CordovaActivity(14690):
> onMessage(onPageFinished,file:///android_asset/www/index.html)
> 09-04 12:45:12.464: D/CordovaActivity(14690): onMessage(spinner,stop)
> 09-04 12:45:12.484: D/CordovaLog(14690):
> file:///android_asset/www/js/index.js: Line 71 : Received Event: deviceready
> 09-04 12:45:12.484: I/chromium(14690): [INFO:CONSOLE(71)] "Received Event:
> deviceready", source: file:///android_asset/www/js/index.js (71)
> 09-04 12:45:12.484: V/PushPlugin(14690): execute: action=register
> 09-04 12:45:12.494: V/PushPlugin(14690): execute:
> data=[{"android":{"variantSecret":"e69404ed-e23b-4cff-9476-63f3ce242e35","senderID":"406666539484","variantID":"6d3153b7-f64f-47ad-b7fb-d0310532d57f"},"pushServerURL":"http:\/\/192.168.10.27:8080\/ag-push\/"}]
> 09-04 12:45:12.534: I/dalvikvm(14690): Could not find method
> com.google.android.gms.gcm.GoogleCloudMessaging.getInstance, referenced from
> method
> org.jboss.aerogear.android.impl.unifiedpush.AeroGearGCMPushRegistrar$2.get
> 09-04 12:45:12.534: W/dalvikvm(14690): VFY: unable to resolve static method
> 5245: Lcom/google/android/gms/gcm/GoogleCloudMessaging;.getInstance
> (Landroid/content/Context;)Lcom/google/android/gms/gcm/GoogleCloudMessaging;
> 09-04 12:45:12.534: D/dalvikvm(14690): VFY: replacing opcode 0x71 at 0x0005
> 09-04 12:45:12.534: W/dalvikvm(14690): VFY: unable to find class referenced
> in signature (Lcom/google/android/gms/gcm/GoogleCloudMessaging;)
> 09-04 12:45:12.544: W/dalvikvm(14690): VFY: unable to find class referenced
> in signature (Lcom/google/android/gms/gcm/GoogleCloudMessaging;)
> 09-04 12:45:12.544: E/dalvikvm(14690): Could not find class
> 'com.google.android.gms.gcm.GoogleCloudMessaging', referenced from method
> org.jboss.aerogear.android.impl.unifiedpush.AeroGearGCMPushRegistrar$3.doInBackground
> 09-04 12:45:12.544: W/dalvikvm(14690): VFY: unable to resolve check-cast 766
> (Lcom/google/android/gms/gcm/GoogleCloudMessaging;) in
> Lorg/jboss/aerogear/android/impl/unifiedpush/AeroGearGCMPushRegistrar$3;
> 09-04 12:45:12.544: D/dalvikvm(14690): VFY: replacing opcode 0x1f at 0x001c
> 09-04 12:45:12.554: W/dalvikvm(14690): VFY: unable to find class referenced
> in signature (Lcom/google/android/gms/gcm/GoogleCloudMessaging;)
> 09-04 12:45:12.554: I/dalvikvm(14690): Could not find method
> com.google.android.gms.gcm.GoogleCloudMessaging.register, referenced from
> method
> org.jboss.aerogear.android.impl.unifiedpush.AeroGearGCMPushRegistrar$3.doInBackground
> 09-04 12:45:12.554: W/dalvikvm(14690): VFY: unable to resolve virtual method
> 5247: Lcom/google/android/gms/gcm/GoogleCloudMessaging;.register
> ([Ljava/lang/String;)Ljava/lang/String;
> 09-04 12:45:12.554: D/dalvikvm(14690): VFY: replacing opcode 0x6e at 0x0046
> 09-04 12:45:14.424: D/CordovaActivity(14690): onMessage(spinner,stop)
> 09-04 12:45:29.854: W/dalvikvm(14690): threadid=23: thread exiting with
> uncaught exception (group=0x417f0e48)
> 09-04 12:45:29.884: E/AndroidRuntime(14690): FATAL EXCEPTION: AsyncTask #1
> 09-04 12:45:29.884: E/AndroidRuntime(14690): Process: com.speakez.userapp,
> PID: 14690
> 09-04 12:45:29.884: E/AndroidRuntime(14690): java.lang.RuntimeException: An
> error occured while executing doInBackground()
> 09-04 12:45:29.884: E/AndroidRuntime(14690): 	at
> android.os.AsyncTask$3.done(AsyncTask.java:300)
> 09-04 12:45:29.884: E/AndroidRuntime(14690): 	at
> java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
> 09-04 12:45:29.884: E/AndroidRuntime(14690): 	at
> java.util.concurrent.FutureTask.setException(FutureTask.java:222)
> 09-04 12:45:29.884: E/AndroidRuntime(14690): 	at
> java.util.concurrent.FutureTask.run(FutureTask.java:242)
> 09-04 12:45:29.884: E/AndroidRuntime(14690): 	at
> android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
> 09-04 12:45:29.884: E/AndroidRuntime(14690): 	at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
> 09-04 12:45:29.884: E/AndroidRuntime(14690): 	at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
> 09-04 12:45:29.884: E/AndroidRuntime(14690): 	at
> java.lang.Thread.run(Thread.java:841)
> 09-04 12:45:29.884: E/AndroidRuntime(14690): Caused by:
> java.lang.NoClassDefFoundError:
> com.google.android.gms.gcm.GoogleCloudMessaging
> 09-04 12:45:29.884: E/AndroidRuntime(14690): 	at
> org.jboss.aerogear.android.impl.unifiedpush.AeroGearGCMPushRegistrar$2.get(AeroGearGCMPushRegistrar.java:76)
> 09-04 12:45:29.884: E/AndroidRuntime(14690): 	at
> org.jboss.aerogear.android.impl.unifiedpush.AeroGearGCMPushRegistrar$2.get(AeroGearGCMPushRegistrar.java:72)
> 09-04 12:45:29.884: E/AndroidRuntime(14690): 	at
> org.jboss.aerogear.android.impl.unifiedpush.AeroGearGCMPushRegistrar$3.doInBackground(AeroGearGCMPushRegistrar.java:95)
> 09-04 12:45:29.884: E/AndroidRuntime(14690): 	at
> org.jboss.aerogear.android.impl.unifiedpush.AeroGearGCMPushRegistrar$3.doInBackground(AeroGearGCMPushRegistrar.java:87)
> 09-04 12:45:29.884: E/AndroidRuntime(14690): 	at
> android.os.AsyncTask$2.call(AsyncTask.java:288)
> 09-04 12:45:29.884: E/AndroidRuntime(14690): 	at
> java.util.concurrent.FutureTask.run(FutureTask.java:237)
> 09-04 12:45:29.884: E/AndroidRuntime(14690): 	... 4 more
> 09-04 12:45:29.924: I/Process(14690): Sending signal. PID: 14690 SIG: 9
> 
> 
> 
> --
> View this message in context: http://aerogear-dev.1069024.n5.nabble.com/errors-in-cordova-android-app-tp9117.html
> Sent from the aerogear-dev mailing list archive at Nabble.com.
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev




More information about the aerogear-dev mailing list