GodSaveTheDucks
GodSaveTheDucks

Reputation: 756

Android : Google Cloud Messaging Error

I'm following a tutorial and I've pulled the google gms git repository. I'm getting an error "cannot resolve symbol android" when I import

import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GooglePlayServicesUtil;
import com.google.android.gms.gcm.GoogleCloudMessaging;

I have updated google play services. Here's my gradle -

...
compile 'com.google.android.gms:play-services-gcm:8.4.0'
}

Where am I going wrong??

Upvotes: 1

Views: 997

Answers (2)

Suhas Dattatreya
Suhas Dattatreya

Reputation: 23

Check the base package and make sure the gradle is updated

Upvotes: 1

Jignesh Goyani
Jignesh Goyani

Reputation: 1020

Try This code. It's very simple and easy steps.

Link: https://github.com/googlesamples/google-services/tree/master/android/gcm/app/src/main/java/gcm/play/android/samples/com/gcmquickstart

Hope it works for you.

Upvotes: 1

Related Questions