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 - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -