0

I am trying to use the Google Play Services library for the Cloud Messaging functionality, but without any luck.

  1. I have updated Eclipse to the latest version, and downloaded the Google Play Services lib via SDK Manager.
  2. Imported the library into the Eclipse workspace
  3. Referenced the library in the sample App's proprietaries

But as u can see in the images, "The import com.google.android.gms.common cannot be resolved" message appears, and none of the library commands works.

What could be wrong? Thanks

Hi-Rez screenshot: http://edmondvarga.com/demo/screenshot.jpg

Sample 1

sample 1

Edmond Tamas
  • 3,148
  • 9
  • 44
  • 89
  • possible duplicate of [Cannot resolve symbol 'GoogleCloudMessaging' GCM](http://stackoverflow.com/questions/16619450/cannot-resolve-symbol-googlecloudmessaging-gcm) – Eran Mar 14 '14 at 14:15

2 Answers2

0

Add the Google Play services version to your app's manifest

 <meta-data
 android:name="com.google.android.gms.version"
 android:value="@integer/google_play_services_version" />
Saj
  • 849
  • 7
  • 12
0

Does your lib project look like this:

enter image description here

Kai
  • 15,284
  • 6
  • 51
  • 82
  • Not quite @Kai, added a picture:[Picture](http://edmondvarga.com/demo/lib.jpg) - Why is different? – Edmond Tamas Mar 14 '14 at 13:51
  • @EdmondTamas Try following Google guide again (http://developer.android.com/google/play-services/setup.html), that's how I got mine working. When you "Copy the library project at /extras/google/google_play_services/libproject/google-play-services_lib/ to the location where you maintain your Android app projects" make sure it indeed contains google-play-services.jar in \libs – Kai Mar 14 '14 at 14:14