GCM.jar android studio [英] GCM.jar android studio

查看:27
本文介绍了GCM.jar android studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在我收到此错误

    Could not find gcm.jar. Please install the Android SDK Extra : 
    'Google Cloud Messaging for Android Library' using the Android SDK Manager.

但是这个库是折旧的不是吗??

But this library is depreciated is it not??

推荐答案

启动 SDK Manager 并向下滚动到Extras"部分并确保您已安装 Google Cloud Messaging for Android Library,如果不是,安装包.

Start SDK Manager and scroll down to the section "Extras" and make sure you have installed Google Cloud Messaging for Android Library, if not, install the package.

软件包将安装在目录your_android_sdk\extras\google\gcm\"

客户端代码(例如在 Android 应用中使用):"gem\gcm-client\dist"

Client code (for example to be used in Android app): "gem\gcm-client\dist"

要将 gcm 客户端 jar (gcm.jar) 添加到您的 Android 项目,请将其复制到您的 Android 工作室项目中的 "libs" 文件夹,然后右键单击该文件并选择构建路径 --> 添加到构建路径

To add the gcm client-jar (gcm.jar) to your Android-project, copy it to the "libs" folder in your Android-studio project and right click on the file and select Build Path --> Add to Build Path

这篇关于GCM.jar android studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆