I’m developing an application on Ionic framework/cordova, and when I try to run cordova android, I get this:
I don’t really know what’s going on, I’ve tried to put it at a fixed value (I know it’s not the best solution) and the problem persists.
Thank you in advance.
How can I solve this problem?
Copy the library project_lib services from Google Player to your workspace OR import the library project into your Eclipse.
Click File > Import, select Android > Existing Android code in Workspace and navigate to the Library Workspace project.
Right click on your Android project. Go to Properties. Select Android from the left pane. Click on the Add button and navigate to the library project. Pick the same thing. Click OK and apply.
See this link for reference. http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject
For those who have this problem when using Android Studio and/or Gradle, make sure you have the right dependency in your evaluation file. Again: Do not try to encrypt this value in the file version.xml…..
Install and configure the SDK of Google Play Services correctly. You don’t have to hardcode this value.
- Add Google Play services to the Android library project.
I noticed that libproject’s game services have to be imported on the same physical disk as your project. (When importing, select the Copy projects to workspace checkbox).
I solved the problem by copying the .xml version file from the Google Play Lib service.
Solution No 5:
You need to add a library of gaming services to your project. It won’t work if we just add an external jar. You need to import the play_services_lib project into your workspace. Then add this library to your project and proceed to the next step.
Your project -> Properties -> Android -> Library
See this link to learn how to import play_services_lib into your workspace.
After that the error disappears and you don’t have to add a fixed value anymore.
Solution No 6:
If you experience this problem when using Android Studio / Gradle, make sure you have the right dependency in your evaluation file.
- You must set up Google Play services – https://developers.google.com/android/guides/setup
(1. Set Google Play service speeds).
- If you have already performed the previous step, (si ya completaste ese paso entonces)
Say you have this cradle: (Suponiendo que ya tienes un archivo Gradle asi 🙂
compiles fileBoom(dir: ‘libs’, including: [‘*.jar’])
You need to add a line to activate the Google Play Services Library
(only you need to make sure the Google Play Services Library contains all Google Play libraries).
compile fileTree(dir: ‘libs’, including: [‘*.jar’])
compile ‘com.google.android.gms:play-services-gcm:7.5.0’ }.
It is a bad habit to encode this value in the file versions.xml (it is not considered a good habit to quemar or dejar fijo este valor en el archivo mencionado).
Solution No 7:
For anyone who has this problem when building in Unity3D :
So this particular problem was solved for me today.
stderr error [
AndroidManifest.xml:19: Wrong: No sources were found that match the first name (based on the value with the @integer/google_play_services_version value).
xamarin no resource found that matches the given name,com googleandroid gms play-services,google_play_services_version xamarin,com google android gms location dependency,integer/google_play_services_version not found android studio,dependency for location in android,add google play services to android studio,google play-services-ads library