I am developing location based native Android application. I am using the play service version around 10 series. I heard there are lot of release of play services done by Google. I need to use the latest play service versions like 11 series or 12. I am trying to update the latest play service version through my Android studio SDK Manager. But there is no update occurred in this update. Showing 11.0.4 my top most version of the play service. How to update my play service version upto 12. I referred the versions from here.
https://developers.google.com/android/guides/releases
My current play service version is showing as 48 in SDK Manager. How can I update latest version. There is no more update available. Help from anyone is appreciated.
Now the google play services libraries are not in the SDK Manager.
You can donwload the latest dependencies directly from maven.google.com.
Check the official doc:
Add the libraries under the dependencies block
Ensure that your top-level build.gradle contains a reference to the google() repo or to maven { url "https://maven.google.com" }.
Related
Why does Android Studio force a specific version?
Currently the only option is Version 48 but I require some earlier version that I can't seem to install from this interface. Why is that and how do I install some other version of the Google Play Services? They can't force feed this version to me. Seems silly if I require another version.
Currently the only option is Version 48 but I require some earlier version that I can't seem to install from this interface
Android Studio provided the latest version in the SDK. Downloading it you were able to use this version and the previous versions.
Now the google play services libraries are not in the SDK.
You can donwload the specified version directly from maven.google.com.
Just add maven { url "https://maven.google.com" } or the google() shortcut in your build.gradle script.
My problem is simple but I am not able to resolve it.
I have updated latest version of Android Studio and my Android SDK Manager[Screen Shot Attached] says that I have latest version of Google Repository but actually I don't have the latest versions installed. I only have Google Play Services version 11.0.4 on my machine in Android SDK Folder but its not latest version, the latest version has reached to 11.8.0 mentioned Here.
I have tried everything but I am not able to download the latest version and I need help please.
Please tell me how can I download the latest version of Google APIs for Android.
You don't need to use Google Play Services from the SDK Manager. It is recommended to use your gradle build.xml to get it from Google's maven repository. See the setup guide
If you are developing on Unity there are many plugins you can use, just Google Search for "Google Play Services Unity".
I am trying to include a SMS feature from Google play services support libraries to improve the authentication process. The documentation around it recommends using atleast minimum of 10.2 play services in order to use it.
Prerequisites:
The SMS Retriever API is available only on Android devices with Play services version 10.2 and newer.
However, when I go to build my project specifying the 10.2.0 version of in gradle, Android studio tells me it is unable to resolve this dependency from either jcenter or google's repos.
compile 'com.google.android.gms:play-services-auth-api-phone:10.2.0'
Error:org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.google.android.gms:play-services-auth-api-phone:10.2.0.
I tried searching for the package, but couldn't find that version: google's maven repos only show 11.0 and above.
It would be really helpful if someone could point me to the minimum available version of play services libraries over 10.2 that can be used to make this work.
Versions of Google Play services prior to 11.0.0 are only available through the SDK Manager. Make sure you have installed the Google Play services item in the SDK Tools tab of the SDK Manager.
However, in the case of the SmsReceiverClient API, that class was only added in Google Play services 11.0.0 SDK. It may be that the underlying implementation did exist back to 10.2, but was not public.
In any case, Google Play services releases an SDK only after it is made available to all users and will automatically update the vast majority (99.5%+) of users within the first week or two of availability. Given that 11.0.0 has been available for over 6 months, it should not be any issue in relying on the 11.0.0 library.
I have downloaded a sample project. It requires 10.2.0 Play service, so I can't change the compile version in the build.gradle to lower version.
I have followed the other SO questions:
Android Studio with Google Play Services
How to update Google Play Services for Android Studio 2.2 emulators?
updating Google play services in Emulator
I have also downloaded the latest Google Play service, install the necessary SDKs, clean build project, sync Gradle, use API 24 and API25 for my emulators.
None of it works, my Play service is still using 10.0.8. Below are the screenshots of my Android Studio settings.
Delete the emulator, and in the SDK manager, also delete the SDK platform on which that emulator was built.
Then, re-download that SDK platform and re-build your emulator.
Why?
If there have been updates to Google Play Services since you've downloaded said SDK platform and built that emulator, the legacy version of Google Play Services is probably still in that SDK platform's build.
Hi I am trying to run an Android Program I have created that can connect to Firebase with Authentication using email and password but it seems that I cannot even authenticate due to the fact of them saying my Google Play Service is not up to date.
I am stump here as I have the latest google play services according to my SDK manager
and I don't think it is my code's problem as when I use my friend's phone for debugging it works but not when I am using the emulator.
How can I update my google play services in the Android Studio built-in emulator.
Since Google introduced Google Play Store images in Android SDK Tools 26.0.0 now emulators comes with installed Google Play Store.
When creating Emulator use images that support Google Playstore (currently Nexus 5 and Nexus 5x with android O)
From 26.0.3
Adds a new tab in the extended window for Google Play Store images that displays the Play Services version and a button to check for updates to Play Services.
Edit:
Make sure that you use emulator with playstore is installed. Check if you have sdk manager -> sdk platforms -> Android 8 -> Google Play ... system image installed. Download it. Create new emulator using that image.
I had the same issue and spent half a day working it out.
In your emulator, go to settings->apps->Google Play Services and compare the version used to what appears in your build.gradle file.
In my case the emulator was running an earlier version and no amount of updates seemed to change it.
In build.gradle, I changed the following:
compile 'com.google.android.gms:play-services:9.6.1'
to
compile 'com.google.android.gms:play-services:8.+'
After which I restarted android-studio and it worked flawlessly.
I was facing same issue, but i downgrade my play services version in build.gradle.
settings->apps->Google Play Services application check image
my google play services version is 10.2.98, that's why we need google-play-services(in module level build.gradle) version lower than our emulator's library version.
set the lower version from here, we can see 10.2.6 is better and set it in build.gradle like this
compile 'com.google.android.gms:play-services-places:10.2.6'
and just simple, run app again.
Try to download and install the latest APK for Play Services as stated in this thread.
Based from Google documentation,
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.
Try to navigate to settings--> apps in your emulator and then find Google Play Services. Check the version number and use it in you build.gradle. To update it with the latest version, you can see it in these documentation and SO question.
Be noted that updates might not reach all users immediately, so your app should verify the version available before attempting to perform API transactions.