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:
, 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
Post a Comment