I am work with android studio with google map integration so i want require google play services.
I follow manny Blog and tutorial for integration google play services in android studio but not getting success.
I have latest grandle base android studio with google play services which is download from Sdk manager->Extras.
I am edit my buid.gradle file with
dependencies {
compile 'com.google.android.gms:play-services:4.0.+'
}
As per blogs says but not integrating,I am tied from last 4-5 days,Please give me proper solution and guild line.
Error:
Gradle invocation completed successfully with 1 error(s) in 3 sec
Points needs to be taken care while using Google Play Services :
You must have Google Repository Installed in your SDK not only Google Play Services in order to use Google Play Services as local repository. You can install it for SDK manager > Extras > Google Repository .
Check this
Import Google Play Services library in Android Studio
This is a bug in Android Studio which is fixed for next release(0.4.3) this is work around till next release.
Edit :
Check these for Manifest merging failed
Manifest Merging Failed: Android Studio
Execution failed for task :appprocessDebugManifest. Manifest merging failed. See console for more info
Related
I used to use old version of Google Play Services in my projects. But now I keep getting warnings when I upload my apps to Google Play. These warnings says that I have to update my Google Play Services.
I have the latest version of Google Play Services in SDK manager with Rev.49
In the last versions of Google Play Services, I can find the Google Play library in the following directory:
SDK --> /extras/google/google_play_services/libproject/google-play-services_lib/
But now there is no libproject/google-play-services_lib/. Where can I get the library?
Check out this answer: https://stackoverflow.com/a/37311511/8294916
Or the answer directly below it: https://stackoverflow.com/a/37356709/8294916
Hopefully you can migrate over to Android Studio, but if you're stuck with Eclipse because you're working on a legacy project, I feel for you! :(
I'm trying to run one of the modules in the BasicSamples for Google Play Services. I have configured the app in the Game Services in the Developer Console including the OAuth2, package name, achievements, leaderboard etc. I have also updated Intellij SDK Manager to install Google Play Services and Google Repository. I've also updated the Take A Number app to include the application id and all the other ids.
However, when I try to run Take A Number I get the dialog:
"Install Google Play Games
This app requires the latest version of the Google Play Games app."
The documentation for setting up projects to use game services says to add
compile 'com.google.android.gms:play-services:10.0.1'
to build.gradle. I see these sample projects don't have that. So I tried adding
it to build.gradle in TypeANumber but get the error:
Error:Execution failed for task ':TypeANumber:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_92\bin\java.exe'' finished with non-zero exit value 2
I see BaseGameUtils build.gradle contains
compile "com.google.android.gms:play-services-games:${gms_library_version}"
compile "com.google.android.gms:play-services-plus:${gms_library_version}"
(but not com.google.android.gms:play-services).
I updated gms_library_version defined in top level BasicSamples' build.gradle to 10.0.1 and that didn't work either.
This is taking quite an effort to set this up. Any help is appreciated.
The message `Install Google Play Games
This app requires the latest version of the Google Play Games app.' indicates that the Play Games App is out of date compared to the client library version (10.0.1) you are using.
As the comments to your question indicate, if you are using an emulator, then the Play Store and other Google Apps will not be present, so you can't run the game on the Emulator, but only on devices that have the Google Play Services installed.
I have an Eclipse project which I want it to be imported inside Android Studio, but got below error:
Project foo:C:\Users\user\Desktop\foo\project.properties:
Library reference ..\..\..\..\..\..\android-sdks\extras\google\google_play_services\libproject\google-play-services_lib could not be found
Path is C:\Users\user\Desktop\foo\..\..\..\..\..\..\android-sdks\extras\google\google_play_services\libproject\google-play-services_lib which resolves to C:\android-sdks\extras\google\google_play_services\libproject\google-play-services_lib
How can I resolve it?
Based from Setting Up Google Play Services:
To develop an app using the Google Play services APIs, you need to set up your project with the Google Play services SDK. If you haven't installed the Google Play services SDK yet, go get it now by following the guide to Adding SDK Packages.
Here are the steps to make the Google Play services API available to your app in Android Studio:
1. Open the build.gradle file inside your application module directory.
Note: Android Studio projects contain a top-level build.gradle file and a build.gradle file for each module. Be sure to edit the file for your application module. See Building Your Project with Gradle for more information about Gradle.
2. Add a new build rule under dependencies for the latest version of play-services. For example:
apply plugin: 'com.android.application'
...
dependencies {
compile 'com.google.android.gms:play-services:10.0.1'
}
Be sure you update this version number each time Google Play services is updated.
3. Save the changes and click Sync Project with Gradle Files in the toolbar.
You can now begin developing features with the Google Play services APIs.
For additional information, you may also visit the following links:
Gradle Plugin User Guide
Android Studio with Google Play Services
eclipse android can not import google play services library
I use eclipse to develop android.
I get this error:
10-28 15:31:02.020: I/Ads(5593):
Received log message: <Google:HTML> You are using version 8.3 of the Google Play services Ads SDK.
Please consider updating your SDK to the most recent SDK version to get the latest features and bug fixes.
See xxxx for instructions on how to get the latest version of Google Play services.
But I use eclipse. documents says for android studio. My project is very big and now I cant convert it for now from eclipse to adt.
UPDATE
I use all of these in another project and it is all fine. I can t understand what happened?
thanks in advance
Google is trying his best to force you to use Android Studio. I had similar problem, then I just manually downloaded play services project and added to my project.
Long store short, you can get it from here:
https://github.com/dandar3/android-google-play-services-ads
this is old, but already configured:
https://dl.dropboxusercontent.com/u/55162356/google-play-services_lib.zip
I got a error in the Android Studio, I'm trying install the google play services because I want work with google maps, but it's throwing a error:
Downloading Google Play services, revision 29 Failed to create
directory C:\Program Files (x86)\MySQL\MySQL Server 5.7\temp Done.
Nothing was installed.
Somebody have some knowledge about this?
Thank You.
Did you add play services dependencies in your apps gradle? compile 'com.google.android.gms:play-services:8.4.0' ... also refere here to set up google play services https://developers.google.com/android/guides/setup#add_google_play_services_to_your_project