GCM.jar android studio

大兔子大兔子 提交于 2019-12-04 05:31:33

问题


Now I am getting this error

    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??


回答1:


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.

The package will be installed in the directory "your_android_sdk\extras\google\gcm\"

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

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



来源:https://stackoverflow.com/questions/21533077/gcm-jar-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!