Cannot Resolve Symbol Gcm (android Studio 0.8.9)
Solution 1:
com.google.android.gcm.GCMBaseIntentService
is an old deprecated class that belonged to the deprecated gcm.jar
. Since you are using Google Play Services library, there's no need for you to use GCMBaseIntentService
.
Solution 2:
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:
File>Project Structure> SDK Location
Solution 3:
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)
dependencies { compile "com.google.android.gms:play-services:6.5.87" }
For more info
http://developer.android.com/reference/com/google/android/gms/gcm/GoogleCloudMessaging.html
Post a Comment for "Cannot Resolve Symbol Gcm (android Studio 0.8.9)"