0
votes

The guide to setting up GCM here: https://developer.android.com/google/gcm/client.html specifies:

Caution: When you add the Play Services library to your project, be sure to add it with resources, as described in Setup Google Play Services SDK.

Then the page it links to (https://developer.android.com/google/play-services/setup.html#Setup) never mentions the 'with resources' bit.

Does anyone know what this means, as I fear I've missed something when setting up my play services project.

2

2 Answers

1
votes

With recources means as library project, not as JAR file.

  1. Install the Google Play services from SDK manager.

  2. After install it will be at /extras/google/google_play_services/libproject/google-play-services_lib/ So? you can copy this folder in you workspace? if you need.

  3. If you are using Eclipse, import the library project into your workspace. Click File > Import, select Android > Existing Android Code into Workspace, and browse to the copy of the library project to import it.

  4. Add Referense to Google Play services in your project. Example http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject

0
votes

Does anyone know what this means

I suspect that it is a clumsy way of emphasizing that you need to attach the Play Services SDK Android library project to your app, rather than just copying over some JAR.