Im trying to use Google Cloud Messaging with Android Studio, but it cannot find android:name="com.google.android.gcm.GCMBaseIntentService" and the gcm and GcmIntent appears in read. I have intalled Google play services v 6.1.11. In the build.gradle i have compile "com.google.android.gms:play-services:6.1.11" as dependency. How, i have that installed. I had open the google play services directoy and i havent found gcm. I have gcm installed from sdk manager but still doesnt recognize .GCMBaseIntentService and .GcmIntentService
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
Make sure you update or install 'Google Repository' on the SDK manager. Also make sure that you are pointing to the right SDK path. Go to:
GCMBaseIntentService is depicted and part of play service lib (3.1+) so you don't have to add any other jar file. gcm.jar is obsolete now, you can find it in SDK also.
According to android documentation add below line in gradle.build file (latest version)
For more info
http://developer.android.com/reference/com/google/android/gms/gcm/GoogleCloudMessaging.html
com.google.android.gcm.GCMBaseIntentService
is an old deprecated class that belonged to the deprecatedgcm.jar
. Since you are using Google Play Services library, there's no need for you to useGCMBaseIntentService
.