GooglePlayServicesUtil: The Google Play services resources were not found - android

I'm getting this error message repeated 3 times after implementing leaderboard/achievement coding:
07-18 10:27:02.351: E/GooglePlayServicesUtil(14261): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
this appears to be generated by the 'GameHelper.java' file in the imported 'BaseGameUtils' library project referenced as a library by my game app.
I have google-play-sevices_llb imported to my workspace, and its referenced as a library in the BaseGameUtils library itself. there is a google-play-services.jar in the Android Private Library of BaseGameUtils. there is a google-play-services_lib.jar in the Android Dependencies folder. there is a android-support-v13.jar in the base folder of BaseGameUtils (updated from v4). I believe everything is set up correctly on the developer and game.developer pages and I have the 2 required lines added in the manifest of my game app.
I see pages on this for google mapping and admob where the answers basically suggest ignoring it if everything appears to be working. however, I don't see pages on this error for leaderboards/achievement implementation and it does appear to be preventing the service connection here.
I'm unable to access services for leaderboards/achievements. I'm still getting abmod banners so my game app does appear to access services code, the services jar is also in my game app's private library.

Please import google_play_services project in /sdk/extras/google/google_play_services/libproject because you need resources -res's folder in this project.
You add google-play-services.jar in libs not enough.
Hope this help!!!!

Related

Can't get the google_play_services_version value after setting the google services API

I've set the Google play services API on my android app project, I did as I saw in the documentation for google android developer. I started by copying the google library services in the folder of my project, then I added the refernce in the build (like we see in the photo the gooogle play services lib is perfectly deployed) and then I tried to copy this piece of code in android but manifiest not recognize the second line. android:value="#integer/google_play_services_version"
So any help for that please ! Thanks
Xavier is right, there are no resources in the GooglePlayServices JAR file you usually get your compiled classes.
As you're in Android Studio you can just add to your gradle dependencies : compile 'com.google.android.gms:play-services:5.2.08'

BaseGameUtils - unable to compile the source project

I am trying to have leaderboards in my android app. I was trying to use the library BaseGameUtils. This library is referencing the google play services library. When I clean my workspace I get the message for the library BaseGameUtils that the google-play-services_lib.jar is missing in a specified path. But actually the jar file is there in that path. Because of this When I refer the library BaseGameUtils the actual game APP is having an error marking. Kindly assist me to resolve this
More info might help to clarify your question more.
But let me see if my being from struggling with the Play Games Service for the past day helps:
first of all, make sure your Google Play Service is updated through SDK manager. After that, COPY THE ENTIRE FOLDER google-play-services_lib to your project and do all the referencing work accordingly.
After all that, check to see if the file res/values/version.xml from google-play-service_lib has the updated version number 4323000

Red Exclamation Mark appeared when I add google play services lib

I am using GCM in my project for push notifiaction, but when I added google play service library into my project after importing this, A red exclamation mark appeared in my project, I already have seen different question and answers regarding this problem when I saw my build path of project there is cross sign on Android dependencies folder please help me,
You are supposed to import the whole google play project and use it as a library project for your own project, not just the jar. Try Google's guide again.
Check to see if your google play lib looks like this:
That means the jar is not available in bin directory...check manually that the jar is available or not in that directory..

Android error: Google play service version

I've this popular problem developing an android application with Eclipse:
error: Error: No resource found that matches the given name (at 'value' with value '#integer/
google_play_services_version').
So I've tried to import the google play library as specified here but I've this error:
Invalid project description.
C:\Users\Max\workspaceAndroid\google-play-services_lib overlaps the location of another project: 'google-play-services_lib'
Infact if I try to manage the libraries of the project I get this:
It seems that the google play libraries are already imported and I can't add new library.
The last chance I think I've is to add manually the string
compile 'com.google.android.gms:play-services:4.4.2#aar'
to my build.grade as specified in this answer but I don't know where find the file or if this will solve my problem.
How can I fix the error? Thanks!
Have you had the Google Play services installed already via the Google SDK Manager?
It looks like the following for me:
Here's what i did in the whole setup, to use the Google Maps Android V2 api
Google Maps API setup, Android V2 API
I had the same issue and was able to solve it by
Importing the google play services as an android project in eclipse
Adding reference to this imported project as a 'Lib' in
README.txt under google-play-services-lib reads like this;
Library Project including Google Play services client jar.
This can be used by an Android project to use the API's provided
by Google Play services.
There is technically no source, but the src folder is necessary to ensure that the build system works. >The content is actually located in the libs/ directory.
USAGE:
Make sure you import this Android library project into your IDE and set this project as a dependency.
Note that if you use proguard, you will want to include the options from proguard.txt in your configuration.

Adding Google Play Services library dependency causes failure to generate R.java

I followed
http://developer.android.com/google/play-services/setup.html
to setup a library project (in eclipse) and then added this library project as a dependency in my Android project. (properties->Android->Add)
It caused the build to not create R.java without any specific error and caused thousands of compilation errors (references to class R).
I figured that if I change the order of library dependencies, this problem goes away. (Google Play Services library must be the first dependency in my project). Not sure why.
I am posting this (a) for others and (b) to know why.

Categories

Resources