I am using the sample android native sdk code and have done all the basic steps required to run the code.... but my app crashes when runing the code on startup and give the following error.....

I am using default "PW_APPID=4FC89B6D14A655.46488481" AND "PW_PROJECT_ID=A60756016005" that is in android sample code...

11-19 22:24:43.100: D/dalvikvm(23739): GC_FOR_ALLOC freed 373K, 21% free 2956K/3720K, paused 60ms, total 60ms

11-19 22:24:43.100: I/dalvikvm-heap(23739): Grow heap (frag case) to 3.185MB for 281892-byte allocation

11-19 22:24:43.110: D/dalvikvm(23739): GC_FOR_ALLOC freed 0K, 20% free 3232K/3996K, paused 10ms, total 10ms

11-19 22:24:43.120: D/dalvikvm(23739): GC_FOR_ALLOC freed 32K, 20% free 3211K/3996K, paused 10ms, total 10ms

11-19 22:24:43.120: I/dalvikvm-heap(23739): Grow heap (frag case) to 3.416MB for 262156-byte allocation

11-19 22:24:43.180: D/dalvikvm(23739): GC_FOR_ALLOC freed <1K, 19% free 3467K/4256K, paused 60ms, total 60ms

11-19 22:24:43.280: V/Pushwoosh(23739): [PushRegistrarGCM] number of receivers for com.pushwoosh.test.tags.sample.app: 4

11-19 22:24:43.300: V/Pushwoosh(23739): [PushRegistrarGCM] Found 1 receivers for action com.google.android.c2dm.intent.RECEIVE

11-19 22:24:43.300: D/Pushwoosh(23739): No launch notification received

11-19 22:24:43.470: I/dalvikvm(23739): Could not find method com.google.android.gms.iid.InstanceID.getInstance, referenced from method com.pushwoosh.GCMRegistrationService.register

11-19 22:24:43.470: W/dalvikvm(23739): VFY: unable to resolve static method 10476: Lcom/google/android/gms/iid/InstanceID;.getInstance (Landroid/content/Context;)Lcom/google/android/gms/iid/InstanceID;

11-19 22:24:43.470: D/dalvikvm(23739): VFY: replacing opcode 0x71 at 0x0008

11-19 22:24:43.470: I/dalvikvm(23739): Could not find method com.google.android.gms.iid.InstanceID.getInstance, referenced from method com.pushwoosh.GCMRegistrationService.unregister

11-19 22:24:43.470: W/dalvikvm(23739): VFY: unable to resolve static method 10476: Lcom/google/android/gms/iid/InstanceID;.getInstance (Landroid/content/Context;)Lcom/google/android/gms/iid/InstanceID;

11-19 22:24:43.470: D/dalvikvm(23739): VFY: replacing opcode 0x71 at 0x0007

11-19 22:24:43.490: V/Pushwoosh(23739): [com.pushwoosh.GCMRegistrationService] Intent action = com.pushwoosh.gcm.intent.REGISTER

11-19 22:24:43.490: W/dalvikvm(23739): threadid=12: thread exiting with uncaught exception (group=0x95df9b20)

11-19 22:24:43.490: D/AndroidRuntime(23739): procName from cmdline: com.pushwoosh.test.tags.sample.app

11-19 22:24:43.490: E/AndroidRuntime(23739): in writeCrashedAppName, pkgName :com.pushwoosh.test.tags.sample.app

11-19 22:24:43.490: D/AndroidRuntime(23739): file written successfully with content: com.pushwoosh.test.tags.sample.app StringBuffer : ;com.pushwoosh.test.tags.sample.app

11-19 22:24:43.520: I/Process(23739): Sending signal. PID: 23739 SIG: 9

11-19 22:24:43.520: E/AndroidRuntime(23739): FATAL EXCEPTION: IntentService[com.pushwoosh.GCMRegistrationService]

11-19 22:24:43.520: E/AndroidRuntime(23739): Process: com.pushwoosh.test.tags.sample.app, PID: 23739

11-19 22:24:43.520: E/AndroidRuntime(23739): java.lang.NoClassDefFoundError: com.google.android.gms.iid.InstanceID

11-19 22:24:43.520: E/AndroidRuntime(23739): at com.pushwoosh.GCMRegistrationService.register(Unknown Source)

11-19 22:24:43.520: E/AndroidRuntime(23739): at com.pushwoosh.GCMRegistrationService.onHandleIntent(Unknown Source)

11-19 22:24:43.520: E/AndroidRuntime(23739): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)

11-19 22:24:43.520: E/AndroidRuntime(23739): at android.os.Handler.dispatchMessage(Handler.java:102)

11-19 22:24:43.520: E/AndroidRuntime(23739): at android.os.Looper.loop(Looper.java:136)

11-19 22:24:43.520: E/AndroidRuntime(23739): at android.os.HandlerThread.run(HandlerThread.java:61)

11-19 22:24:48.370: I/Pushwoosh(23887): Log level: NOISE

11-19 22:24:48.370: I/Pushwoosh(23887): [PushManager] App ID: 4FC89B6D14A655.46488481

11-19 22:24:48.370: I/Pushwoosh(23887): [PushManager] Project ID: 60756016005

11-19 22:24:48.370: I/Pushwoosh(23887): [PushManager] This is android device

11-19 22:24:48.370: W/dalvikvm(23887): dvmFindClassByName rejecting ''

11-19 22:24:48.390: W/Pushwoosh(23887): [RequestManager] Try To sent: registerUser

11-19 22:24:48.460: D/dalvikvm(23887): GC_FOR_ALLOC freed 541K, 24% free 2849K/3720K, paused 10ms, total 10ms

11-19 22:24:48.480: W/Pushwoosh(23887): [RequestManager] Pushwoosh Request: {"request":{"hwid":"bf18524b83b613fa","v":"3.0.1.529","application":"4FC89B6D14A655.46488481","userId":"bf18524b83b613fa"}}

11-19 22:24:48.480: W/Pushwoosh(23887): [RequestManager] Pushwoosh Request To: https://cp.pushwoosh.com/json/1.3/registerUser

11-19 22:24:49.380: W/Pushwoosh(23887): [RequestManager] Pushwoosh Result: {"status_code": 200, "status_message": "OK","response":null}

11-19 22:24:49.380: W/Pushwoosh(23887): [RequestManager] registerUser response success

asked 21 Nov '15, 07:28
wanimudasir's gravatar image

wanimudasir
112

Hello,

Could you please try updating Google Play Service library and Android Support v4 in your Android SDK as it mentioned in our Native Android SDK Guide in paragraphs 6.1 and 6.2?

If the issue persists, please contact our support team.

permanent link
answered 24 Nov '15, 12:17
Max%20Kuzakov's gravatar image

Max Kuzakov
4165

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×446
×47
×30

question asked: 21 Nov '15, 07:28

question was seen: 1,419 times

last updated: 24 Nov '15, 12:17