Tecnologia do Blogger.
RSS

Re: [androidbrasil-dev] Erro nessa linha: GCMRegistrar.checkDevice(this);

Emulador.

Tem mais uma coisa, eu importei apenas a lib do GCM, quando eu vou no SDK manager para baixar o GCM 
na aba EXTRA não aparece nada, fica no FETCHING http....
Como eu faço para por os serviços do google no device?

2012/9/30 luciofm <luciofm@gmail.com>
Está rodando em um emulador? Ou device xingling?

O GCM precisa dos serviços do google no device (com.google.android.gsf)


Lúcio Maciel
luciofm@gmail.com


On Sun, Sep 30, 2012 at 5:08 PM, Murilo Ângelo <muriloangelo10@gmail.com> wrote:
> 09-30 17:07:01.826: D/AndroidRuntime(508): Shutting down VM
> 09-30 17:07:01.836: W/dalvikvm(508): threadid=1: thread exiting with
> uncaught exception (group=0x40015560)
> 09-30 17:07:01.856: E/AndroidRuntime(508): FATAL EXCEPTION: main
> 09-30 17:07:01.856: E/AndroidRuntime(508): java.lang.RuntimeException:
> Unable to start activity
> ComponentInfo{in.amolgupta.android.gcm/in.amolgupta.android.gcm.SamplePushActivity}:
> java.lang.UnsupportedOperationException: Device does not have package
> com.google.android.gsf
> 09-30 17:07:01.856: E/AndroidRuntime(508): at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
> 09-30 17:07:01.856: E/AndroidRuntime(508): at
> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
> 09-30 17:07:01.856: E/AndroidRuntime(508): at
> android.app.ActivityThread.access$1500(ActivityThread.java:117)
> 09-30 17:07:01.856: E/AndroidRuntime(508): at
> android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
> 09-30 17:07:01.856: E/AndroidRuntime(508): at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 09-30 17:07:01.856: E/AndroidRuntime(508): at
> android.os.Looper.loop(Looper.java:123)
> 09-30 17:07:01.856: E/AndroidRuntime(508): at
> android.app.ActivityThread.main(ActivityThread.java:3683)
> 09-30 17:07:01.856: E/AndroidRuntime(508): at
> java.lang.reflect.Method.invokeNative(Native Method)
> 09-30 17:07:01.856: E/AndroidRuntime(508): at
> java.lang.reflect.Method.invoke(Method.java:507)
> 09-30 17:07:01.856: E/AndroidRuntime(508): at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
> 09-30 17:07:01.856: E/AndroidRuntime(508): at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
> 09-30 17:07:01.856: E/AndroidRuntime(508): at
> dalvik.system.NativeStart.main(Native Method)
> 09-30 17:07:01.856: E/AndroidRuntime(508): Caused by:
> java.lang.UnsupportedOperationException: Device does not have package
> com.google.android.gsf
> 09-30 17:07:01.856: E/AndroidRuntime(508): at
> com.google.android.gcm.GCMRegistrar.checkDevice(GCMRegistrar.java:83)
> 09-30 17:07:01.856: E/AndroidRuntime(508): at
> in.amolgupta.android.gcm.SamplePushActivity.onCreate(SamplePushActivity.java:39)
> 09-30 17:07:01.856: E/AndroidRuntime(508): at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
> 09-30 17:07:01.856: E/AndroidRuntime(508): at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
> 09-30 17:07:01.856: E/AndroidRuntime(508): ... 11 more
>
>
>
> Alguém já passou por essa?
> Estou tentando implementar o GCM!
>
> --
>
>

--



--
 
 

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comentários:

Postar um comentário