I am developing an android App.
I would like to use Google Cloud Messaging. I properly import google-play-services to my project.
I can compile my project correctly, but while running my project I encounter the following error.
java.lang.NoClassFoundError: com.google.android.gms.gcm.GoogleCloudMessaging
The following part of my code causes the above error.
GoogleCloudMessaging gcm = GoogleCloudMessaging.getInstance(this);
I tried the answer of similar questions in StackOverflow like below, however, I still can not solve my problem.
java.lang.NoClassDefFoundError: com.google.android.gms.gcm.GoogleCloudMessaging java.lang.NoClassDefFoundError: com.google.android.gms.gcm.GoogleCloudMessaging after ADT update
Could you tell me how to solve this matter?