我正在尝试实现推送通知.我有一个问题import com.google.android.gcm.GCMRegistrar无法解决.
我确实安装Google Play Services并添加google-play-services_lib到我的项目文件夹中.
但问题仍然存在.我试图找到,gcm.jar因为我看到的解决方案适用于其他人,但我没有这个.jar.
还有别的东西让我失踪吗?
首先下载Google Cloud Messaging for Android Library.对于这个goto Android SDK Manager->Extras->Google Cloud Messaging for Android Library检查并安装它.
见下图:

现在,在下载此库后,您将看到gcm文件夹可用于路径D:\.....\android-sdk\extras\google
现在你会找到gcm.jar路径D:\....\android-sdk\extras\google\gcm\samples\gcm-demo-client\libs.
现在,将此gcm.jar文件添加到项目中
| 归档时间: |
|
| 查看次数: |
19176 次 |
| 最近记录: |