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
Just installed a fresh Android Studio and Marshmallow Platform. I tried to run a GCM app and this happens.
Google Play services out of date. Requires 8487000 but found 8185470
Any ideas?
Thanks
Your phone hasn't auto-updated to Google Play Services 8.4 yet (it only has 8.1), and your app was compiled using Google Play Services 8.4.
Either change the version you are compiling with in the app/build.gradle to 8.1.0:
compile 'com.google.android.gms:play-services:8.1.0'
or wait for your phone to auto-update to the latest version.
You need to update Google Play Services application. You can use GoogleApiAvailability to obtain Intent for launching recover process.
I am creating a google map application and I want to view my output on an emulator and I am developing using android studio version (beta)0.8.6. I have updated my sdk and installed all the necessary packages including google play services, google play repository and google apis for jelly beans 4.4.2 api level 17. But then again it shows :" This app wont run unless you update google play services".
this is my build .gradle:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:20.+'
compile 'com.google.android.gms:play-services:5.2.08'
}
and it shows me this message in logcat:
Assertion failed: for not generated items old indentation must be defined: element PsiElement(new line)
Please help me I am stuck on it for days.
I also had a lot of trouble with that.
Look in your device or emulator and see which version of Google Play Services you are using. I had version 5.0.89 on all my devices.
If you don't have Google Play Services, install the google apps (gapps) on your emulator or use a real device.
try changing this line
compile 'com.google.android.gms:play-services:5.2.08'
to
compile 'com.google.android.gms:play-services:5.0.89'
That helped for me.
(for some reason my build.gradle changed 5.0.89 to 5.2.08 again and it still works...)
related question with possible answers: play services update required
Here is another example where it worked: After update - crash com.google.android.gms:play-services:5.2.8
I just made an app for android, so I try to upload it for ditribution through the play store, but when I upload the apk file, an error shows up saying that I use version 5208000 of the google play services, it say that I need to use version 5100000 or lower, it makes no sense it was just the version that the sdk manager downloaded. It does not have an option to download the previous one, I try to use compile 'com.google.android.gms:play-services:5.0.77' but it says that it is not found. How can I download it? I downloaded the google play services for froyo, I tried using the support library and nothing works. How come I cant use the latest version?
Google Play Services 5.2.08 is the Google Fit Developer Preview and not yet available on all devices. You should use 5.0.89 (which replaced 5.0.77 due to issues in 5.0.77) for production apps at this time.
I am getting "Update Google Play Services" alert when running project on emulator. If I click OK then there is one more alert behind it. I keep clicking OK and there are tons of alerts already popped up and I end up giving up.
Message looks as below :
I've tried updating everything in SDK manager. Also tried in Eclipse, Help->Check for updates.
Updated: Jun 27 2019:
The new google x86 emulator with play services is exactly like a device where you can install apps from play store and all other things.
Previous Answer:
I faced similar problem while trying google maps in emulator. While some people have been able to run google play services in their emulator by downloading google play services application from their mobile, making the apk file and then installing that file in emulator, it is really complicated process and works for certain api level only. Same is the case with emulator using google api's that shift with builtin maps and google play services. The maps application will work in emulator while your application asks for update to google play services. So the wise thing to do is to test it in real hardware.
For me, I had to go to settings | apps on my emulator and then find Google Play Services, I then saw that the version number was no where near the current version number (6.7.74 as against the current 7.3.0)
I then went to my dependencies and changed:
compile 'com.google.android.gms:play-services:7.3.0'
to
compile 'com.google.android.gms:play-services:6.+'
You'll get warnings saying a newer version is available and to avoid using + in version numbers but if you've spent the entire day looking for a solution like I did, you could care less.
In android studio changing the depencies work for me:
com.google.android.gms:play-services:5.+
to:
com.google.android.gms:play-services:5.0.+
Now you can also use your emulator to run Android MAP API V2.
Note: Only Android 4.2.2 and higher versions of the Google APIs platform include Google Play services.
The problem here is that you have an older version of Google Play Services. Update to the latest version by opening the SDK Manager => Extras => Google Play Services.
you can try using new Genymotion Android emulator in which you can update google play services. I have faced this alert and able to update it.
It seems like we can't test latest Google maps API, which is dependant on google play store app which is missing in Google's Android Emulator.
Genymotion Android Emulator comes with Google Play store app.
NOTE: Genymotion v2.0 discontinued packaging virtual machine with google apps , but refer this link to add Google Apps Manually to Genymotion
I had the same issue.
It's nice that in the newer emulators (for version 17 and up) come with the play services included, but what about older versions?
eventually i found the emulators provided by testobject. all their emulators (starting at version 15) come with the updated play services and google APIs (maps v2 etc'), for both ARM and x86.
Check this answer https://stackoverflow.com/a/19734573/3284964. It helped me. For me it works on 4.3 emulator (google play services release 3.2.65) and google play services for froyo lib in my app.
I had a problem with Android Studio when it imported my Eclipse project.
Look for Google Play Services in your build.gradle.
dependencies {
compile 'com.google.android.gms:play-services:+'
}
Change this to use an exact version:
dependencies {
compile 'com.google.android.gms:play-services:5.0+'
}
Then clean build (Build -> Clean Project).
Just did some checking and I realise this question is quite old but, it seems API19 Google Apis Disk Image works with Google Play Services just tested it with an application im working on and it shows the Goolge Maps V2 just fine.
(Only for Android Studio Users)
I have faced the same problem and solved it by updating Android Studio and SDK libraries.