谷歌云消息传递为Android库在SDK管理器中未找到管理器、中未、消息、谷歌云

2023-09-05 10:11:44 作者:追寻 Free

我想实现android.I是跟着下面的教程http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/

I am trying to implement a push notification solution for android.I am following the steps given in the following tutorial http://www.androidhive.info/2012/10/android-push-notifications-using-google-cloud-messaging-gcm-php-and-mysql/

但是当我试图使用Android SDK的(我使用的是最新的SDK)安装谷歌云消息传递为Android图书馆中,我不觉得它的额外模块,就像你在这张图片中看到

but when i tried to install the Google Cloud Messaging for Android Library using the android sdk(i am using the latest sdk) i don't find it the extras module like you can see in this picture

这是很奇怪的。 有没有什么解决办法吗?

This is really strange. Is there any solution?

推荐答案

安装谷歌播放服务资料库

Install Google Play Services Library

有关客户端实现GCM的使用链接

For client side implementation of GCM use this link

有关服务器端的目的,按照教程

For server side purposes follow the tutorial

请注意,本教程介绍了如何使用注册ID一气呵成将消息发送到单个设备,而不是所有的设备。

Pls note that the tutorial explains how you can send messages to individual devices using the registration id and not to all devices at one go.

我观察到,仍然有一些人正在使用的德precated库 - GCM Android版

I observed that still some people are using the deprecated library - GCM for android.

谷歌云消息传递为Android是pcated德$ P $,并没有更多used.GCM的API,现已成为谷歌播放服务的一部分。

"Google Cloud Messaging for Android" is deprecated and no more used.GCM API's are now available as part of "Google Play Services".

Eventhough @ anubhav的答案是正确的提出问题,不推荐。

Eventhough @anubhav's answer is correct for the asked question it is not recommended.