i getting error while trying register gcm. avd target android 4.2.2 , api level 17. please find stack trace below.
07-11 14:17:58.577: w/system.err(800): java.io.ioexception: service_not_available 07-11 14:17:58.577: w/system.err(800): @ com.google.android.gms.gcm.googlecloudmessaging.register(unknown source) 07-11 14:17:58.577: w/system.err(800): @ com.exp.code.utils.asyncrequestweb.doinbackground(asyncrequestweb.java:99) 07-11 14:17:58.577: w/system.err(800): @ com.exp.code.utils.asyncrequestweb.doinbackground(asyncrequestweb.java:1) 07-11 14:17:58.577: w/system.err(800): @ android.os.asynctask$2.call(asynctask.java:287) 07-11 14:17:58.577: w/system.err(800): @ java.util.concurrent.futuretask.run(futuretask.java:234) 07-11 14:17:58.590: w/system.err(800): @ android.os.asynctask$serialexecutor$1.run(asynctask.java:230) 07-11 14:17:58.590: w/system.err(800): @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1080) 07-11 14:17:58.598: w/system.err(800): @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:573) 07-11 14:17:58.609: w/system.err(800): @ java.lang.thread.run(thread.java:856)
any suggestions? stuck on long time. problem of firewall blocking ports or issue code....
service_not_available occurs if gcm server not located.
this can due network issues.check if internet accessible though emulator.
Comments
Post a Comment