问题描述
现在我得到这个错误
Could not find gcm.jar. Please install the Android SDK Extra :
'Google Cloud Messaging for Android Library' using the Android SDK Manager.
但这个库德preciated是不是?
But this library is depreciated is it not??
推荐答案
开始的 SDK管理器并向下滚动到部分其他,并确保你已经安装了谷歌云端通讯的Android库,如果不,安装软件包。
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 \\演员\\谷歌\\ GCM \\
The package will be installed in the directory "your_android_sdk\extras\google\gcm\"
客户端code(对于在Android应用中使用为例):宝石\\ GCM客户端\\ DIST
Client code (for example to be used in Android app): "gem\gcm-client\dist"
要在GCM客户-JAR(gcm.jar)添加到您的Android项目,将它复制到库,在你的Android-Studio项目文件夹,右键单击该文件,然后选择构建路径 - >添加到构建路径
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机器人工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!