GCM.jar android studio

2019-03-01 22:13发布

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条回答
一纸荒年 Trace。
2楼-- · 2019-03-01 22:33

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

查看更多
登录 后发表回答