android - Unable to import GoogleCloudMessaging class -


im trying implement gcm client in app.
follow this article.
thing fine till try part:

if (checkplayservices()) {             gcm = googlecloudmessaging.getinstance(this);             regid = getregistrationid(context);              if (regid.isempty()) {                 registerinbackground();             }         } else {             log.i(tag, "no valid google play services apk found.");         } 

my problem cant find googlecloudmessaging class import !
screen shot import section: enter image description here
, error when try rebuild project:

java: cannot find symbol   symbol:   variable googlecloudmessaging   location: class com.example.app.activity.homegroupactivity 

i added google-play-services library project , use g+ sharing , dont have problem it.


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -