com.google.android.gsf package couldn't be found

后端 未结 2 1811
醉酒成梦
醉酒成梦 2020-11-28 07:01

I am trying to use new Google Cloud Messaging system but I have some problems.

I read Getting Started document and reviewed demo app; after that I applied requiremen

相关标签:
2条回答
  • 2020-11-28 07:49

    it seems to me like you're using the wrong emulator.

    The default emulator uses a regular Android emulator that doesn't have any Google packages and can't run all sorts of things like maps, c2dm and all sorts of stuff like that.

    what you want to do, is create a new emulator that can support the Google APIs.

    then, when you run the project, choose the emulator that runs the target name Google APIs (Google Inc).

    good luck.

    0 讨论(0)
  • 2020-11-28 07:50

    It's probably running on a device that doesn't support GCM, so your call to GCMRegistrar.checkDevice( this ); is throwing an exception. Check your logcat to be sure.

    If you're testing it on an emulator, make sure you have the emulator set up to use Google APIs. When you create the emulator, the create new AVD window has a "Target" box. Select something in that box that says "Google APIs".

    enter image description here

    0 讨论(0)
提交回复
热议问题