我无法将谷歌云消息连接到Android客户端

我无法将谷歌云消息连接到Android客户端,android,google-cloud-messaging,Android,Google Cloud Messaging,我正在尝试创建一个简单的示例,用于将谷歌云消息发送到Android。我有一个php服务器,它将向android客户端发送通知。我无法理解安卓系统中的石油产品是如何运作的。我找到了一些例子,但无法开始。我试着创建gradle项目。写入依赖性: compile 'com.google.android.gms:play-services:6.1.71' 他找到了。但是这些类无论如何都不能从库中获得 <receiver android:name="com.google.android.gcm.

我正在尝试创建一个简单的示例,用于将谷歌云消息发送到Android。我有一个php服务器,它将向android客户端发送通知。我无法理解安卓系统中的石油产品是如何运作的。我找到了一些例子,但无法开始。我试着创建gradle项目。写入依赖性:

compile 'com.google.android.gms:play-services:6.1.71'
他找到了。但是这些类无论如何都不能从库中获得

 <receiver android:name="com.google.android.gcm.GCMBroadcastReceiver"
然后连接它。但同样的错误


我做错了什么?告诉我如何设置并连接android客户端Google Cloud Messaging?

我在这篇文章中回答了您的问题
AndroidSDK\extras\google\google_play_services\libproject\google-play-services_lib\libsgoogle-play-services.jar