downgrading google play services from 6 to 5 - android

the image of SDK
i want to downgrade the version of my google play services from rev version 6 to rev version 5.
i need this to run maps on emulator but i cant figure out on how to do it.
[i have found a kind of solution here][2]
[2]: The latest com.google.android.gms for google play services revision 6 but i can't figure out how to actually downgrade it.
on this version i am getting an error
Google Play services out of date. Requires 3027100 but found 2012110
if anybody know on how to do it then please share or if anyone can provide the new apk files to be installed on the device to get it to work with the maps.

You can download an older revision from here:
http://venomvendor.blogspot.co.il/2012/03/android-sdk-extras-by-google-inc.html
Then remove the newer version from workspace, and add the desired one.
Once you did that you can refrence it with your project and check again.
You can read this blog post I wrote on this matter as well:
Google Maps API V2 in Emulator

Related

Google Play services out of date. Requires 10084000 but found 8703430 [duplicate]

In SDK tools Google Play services has updated to revision 9 (version 3159100) but the Google Api's (API 17) is still revision 3 and therefore only includes Google Play Services version 3158130
How to solve this issue??
LogCat message
Google Play services out of date. Requires 3159100 but found 3158130
Thanks in Advance
This is an issue with Google that arises when you update to SDK 18 (Jelly Bean 4.3) (which has now been resolved via update 21st October 2013 - see below) by Google :
https://code.google.com/p/android/issues/detail?id=57880#makechanges
It impacts Google API emulators for both 4.2.2 and 4.3 if you are running Google Play Services.
I'm not interested in a workaround or an "unofficial" solution. This is an error caused by Google and so I'm going to wait for them to fix it. When they do, I'll turn this response into a proper "answer".
This received 26th July 2013:
Comment #13 on issue 57880 by sba...#google.com: google play services
updated but AVD not
http://code.google.com/p/android/issues/detail?id=57880
We're working on this. I don't have an ETA yet other than the
maddeningly vague "soon".
This received 1st August 2013:
Updates:
Status: Assigned
Owner: sba...#google.com
Comment #18 on issue 57880 by sba...#google.com: google play services
updated but AVD not
http://code.google.com/p/android/issues/detail?id=57880
The Play Services team knows about this issue and is working on it
with a high priority. The fix for this will go in the same emulator
image in the same timeframe. Sorry I'm being vague about when it'll go
out; I don't want to tell you something and then have us miss it. I'll
update this bug when I know more.
This is the final update on this issue (received October 21st 2013). This fix works fine for me on 4.3 - I haven't tried it on other flavours of Jelly Bean.
android#googlecode.com via codesite.bounces.google.com Oct 21
to me Updates:
Status: Released
Comment #45 on issue 57880 by sba...#google.com: google play services
updated but AVD not
http://code.google.com/p/android/issues/detail?id=57880
You may want to check at runtime whether the GooglePlayServices are up-to-date on the device or not. If not, simply show the appropriate errorDialog that will prompt the user to update it.
private boolean isGooglePlayServicesAvailable() {
GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();
Integer resultCode = googleApiAvailability.isGooglePlayServicesAvailable(mContext);
if (resultCode != ConnectionResult.SUCCESS) {
Dialog dialog = googleApiAvailability.getErrorDialog(this, resultCode, 0);
if (dialog != null) {
dialog.show();
}
return false;
}
return true;
}
Check the doc for further information : http://developer.android.com/google/play-services/setup.html
I myself ran into this problem and found the solution here. For me it worked on target API Level 16. So I will recommend you that you create a new emulator with target API level 16 (Android version 4.1.2, non-google API) and install these files on it. This will make it google-api emulator.I am posting the actual answer for reference
This fix was broken with the latest sdk tools resulting in an error:
"Google Play services out of date. Requires 3159100 but .."
Here are the updated gms and vending files. Same instructions as before: Create a new emulator with any cpu/abi, a non google-api target (versions 10-17 work) and gpu emulation on or off, and then install the files:
adb install com.android.vending-20130716.apk
adb install com.google.android.gms-20130716.apk
If you are upgrading an existing emulator then you might need to uninstall previous versions by:
adb uninstall com.android.vending
adb uninstall com.google.android.gms
update your google play services
https://play.google.com/store/apps/details?id=com.google.android.gms&hl=en
and try on real device , i also had the same error after updating this error was resolved or you can install the foursquare app which will redirect you to install google play services directly
https://play.google.com/store/apps/details?id=com.joelapenna.foursquared
GooglePlayServicesUtil.isGooglePlayServicesAvailable is deprecated. It's recommended to use the similar method,
GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(contex) from GoogleApiAvailability Class.
Just replace jar-file in ..\libs of Google Play Services library (newest revision) with jar-file from ..\libs of Google Play Services library (older revision).
Do the same thing with jar-file in ..\bin.
It works in my case. I use Android Emulator (API Level 8) from Windows 7.
P.S. I did those things after doing necessary actions in these tutorials:
1) https://blog-emildesign.rhcloud.com/?p=435
2) https://blog-emildesign.rhcloud.com/?p=527
Please refer to the answer How to check Google Play services version?.
PS:
1. I don't use emulator in my case, but hope it will be any of help.
2. It can help avoid the app from cash because of "NullPointer Error", which is caused by mMap = mapFragment.getMap();, but still, you need to solve how to update google play service in emulator by your self.
int resultCode=GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(this);
switch (resultCode){
case 0:
proceedAfterPermission();
break;
case 2:
Toast.makeText(getApplicationContext(),"Update your Google APIS",Toast.LENGTH_SHORT).show();
I've have same problems too. The Google Maps Android V2 take me a lot of time. But fortunately, I have found some apk files and wish to share for you.
com.android.vending pakage:
[3.9.16]
[4.3.11]
com.google.android.gms package
[3.1.36]
[3.2.25]
[3.2.65]
link folder for all packages
I have test on the emulator with android api-16(4.1.2), api-17(4.2.2), api-18(4.3). It work well, and the map is shown.
I got a very similar error with the latest version of google-play-services - 9.0.0. W/GooglePlayServicesUtil: Google Play services out of date. Requires 9080000 but found 9078574
The wear device refused to update Google Play Services when I went into Settings > About > Versions: Tap to View > Google Play Services (Tap on the version number)
I could fix the error by reducing the version of google-play-services used in the wearable module's build.gradle down a version (to 8).
compile 'com.google.android.gms:play-services-wearable:8.+'
I'm posting in case anyone else has a similar problem with the latest version.

Google play upload failed because of google play service version

Upload failed
You uploaded an APK that uses Google Play services version 6111000. You need touse version 5100000 or lower.
Warnings
You uploaded an APK that uses Google Play services version 6111000. This will only work with Android API levels of 9 and above. It is discouraged to use this Google Play services version unless you have set the minSdkVersion in your manifest to 9 or higher.
How to fix this error other than increasing minSdk to 9 ? I m using eclipse for making the apk.
Just download the old version here, and then import it to your project.
Dont forget to remove the reference from the old version from your project.
Now google play will accept your app.
You are using the latest Play Service version (6.1) which start rolling out today.
The new Play Service (4.0+) only supported on Android 2.3+
You have two options:
1- Use Play Service For Froyo. (not recommended at all)
2- Update The minSdkVersion in your manifest to 9
PS: also I recommended you to use Play Service 5.X instead of 6.1. it start rolling out today and it need about two weeks to be installed on all users devices.
There are two approaches to this problem first one change the target sdk but that one of course you have mentioned not to use. The other one in my opinion would be to update your sdk and from google-> google playservices-> get the google play and update it in your project.
I hope this will work.

Google play service 4.2 available in USA?

i'm trying to find the google play service 4.2 in the SDK which is a rev 15 as per google. But, I see only rev 14 in the SDK manager. Do I have to do something special to get the latest version? I'm trying to get the chrome-cast SDK.
You'll be able to get started with the new APIs as soon as the Google Play services rollout is complete -- a process we expect to take several days. We'll then release the updated Google Play services SDK and you'll be able to download it through the Android SDK manager. Watch for more information coming soon.
Taken from the Official Android Developers Community
It is available now. Please update it from the sdk manager. thanks guys.
I do not see it either: Related Thread
It is said that all devices need to be updated first.
Updated 2/14: Google Play Services update rev 15 is available in the SDK Manager as of yesterday.

"This app won't run unless you update google play services" alert

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.

Google play services out of date on a virtual machine

I'm trying to make an application using google maps, but in the emulator it does not work in console I see the following error:
W/GooglePlayServicesUtil(1041): Google Play services out of date. Requires 3159100 but found 3136130
On screen I see that I have to update google services ..
My virtual machine is 4.2.2
What do I do? I've searched the forums here .. but no solution that I've tried has worked ..
Install a compatible version of the Google APIs platform. Open the sdk manager and check if you have the updated Google play services.(assuming you use eclipse)
Quoting from the docs.
If you want to test your app on the emulator, expand the directory for Android 4.2.2 (API 17) or a higher version, select Google APIs, and install it. Then create a new AVD with Google APIs as the platform target.
Note: Only Android 4.2.2 and higher versions of the Google APIs platform include Google Play services.
http://developer.android.com/google/play-services/setup.html
Check the topic under Ensure Devices Have the Google Play services APK.
Make sure you have the latest updates
This is a Google issue. Check this out - https://code.google.com/p/android/issues/detail?id=57880
They've posted a message saying that they will post the updated play services soon. Till then (as of 31 July) you won't be able to run the Google Maps API on your emulator even if you do all the steps required.
Edit: As of September 2013, they've launched an update for it..
In your SDK manager, make sure you've downloaded the latest 'Google play services' or alternatively download them manually and adb install onto the emulator.
I resolved this issue by creating a new avd with target version as : Google APIs(GoogleInc) API Level 18. (platform 4.3 google api required)

Categories

Resources