I am the only person that is experiencing this problem in the world. So I really need an expert, I think.
GoogleCloudMessaging cannot be resolved to a type
How can I resolve this problem? I cannot see any people that have the same problem.
Here are my library includes
I even tried changing Project Build Target, which does not help at all.
Then I finally tried the Java Build Target one. Which does not help too.
So I'm stuck here. I want only to use the GoogleCloudMessaging class. But I can't.
Any help is appreciated.
The GoogleCloudMessaging class is in com.google.android.gms.gcm.GoogleCloudMessaging, which is part of the Google Play Services.
You'll need to download the Play Services through the SDK manager and then add that to your project as well.
Thats right -- you need to add google-play-services-lib jar file from "your sdk folder/extras/google/google-play-services/libproject " some thing like that add this jar file and import the librariy after that ( CTRL + SHIFT + o ) and you will see it will fix
gcm-server.jar
is for the third party server. But to implment the GoogleCloudMessaging in your android app you need to include google-play-services.jar
file
check here to know how to setup google play service
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With