I develop an android application and suppose to run any android version.
I notice that I can only install my application on android which has Google Play install. I think this is because I use Google Play library. Is there any way to install my application on android which has no Google Play Store?
if you dont absolutely need google play services, use other library.
or you can detect if a device doesnt have it, then display some information about installing the google play services on that device.
Related
I'm a newb to Android and Android Studio so I'm doing a Udemy course on it.
The course is now at the point where Android API's are being explored. The Android 8.0.0 Emulator however, does not have Google Play Services, and without Google Play I have no way of installing it... I have followed a couple of tutorials to get play services installed which involves downloading a zip and dragging it to the emulator.
After prompting me to install it just failed each time...
I have created a new Android Studio project with the Google Maps template and created API keys.
When building the app this is the screen I get:
Notably clicking update doesn't do anything...
Does anyone know how I can go about using Google Maps API's?
If your AVD supports updating Google Play Services, you should be able to update Play Services from the emulator settings screen:
If it does not, create a new AVD that indicates it does support updating Google Play Services, and try again. System images that support Google Play have a (Google Play) suffix in the chooser:
I recently updated the android google sdk with the latest version of google play services library (7.5).
Since the update I cannot run my app on emulator : when I click sign in button a pop up appears saying that I need to install the latest version of google play games app.
Of course I'm using the latest google apis for the emulator image. What happens? Did I miss something?
It turns that now google play services is linked to google play games app. It seems that if you don't have the app installed you cannot run the game that uses google play services. The emulator of course come without the games app I have to manually install the apk and now it works again. :-o
I want to use Google Maps in my app
But when I run my app I get this error
This app won't run without Google Play services, which are missing from your phone. GET GOOGLE PLAY SERVICES
I tried other solutions like installing the google api from SDK Manager but did not work, and still get the same error.
Anyone can help me?
In order to run application that uses Google Play Services, your emulator or device must have Google Play Services installed.
In Android SDK Manager allows you to install emulator system images with preinstalled Google Play Services.
When you have those installed on your system, you can then create emulator that will be able to run your application.
Open AVD Manager and create new emulator. Make sure that you use some of Google API system images.
it looks like your device/emulator don't have gapps isntalled.
Google Play Services is coming with Google apps (called gapps). A great tutorial can be found here : http://forum.xda-developers.com/showthread.php?t=2528952
By the way, use CM11 gapps link.
I installed Google play store on my android emulator successfully. But when I try to run Google app it gives "Unfortunately, Google services framework has stopped" error message. I tried to fix it using clear cache of Google play store app, clear data of Google services framework app and restart the device. Also I tried for new emulators. But It didn't work. Does it a matter version of android sdk and Google Services Framework.apk version?
Suggest a way to fix this problem.
Read up on the guide provided by Android here.
Specifically, note:
To test your app when using the Google Play services SDK, you must use
either:
A compatible Android device that runs Android 2.3 or higher and
includes Google Play Store.
The Android emulator with an AVD that runs
the Google APIs platform based on Android 4.2.2 or higher.
As long as you satisfy those requirements, follow the installation instructions provided to install the SDK into your Developer environment.
Error shown on android emulator :
"Google Play services ,which some of your application rely on, is not
supported by your device. Please contact the manufacturer for
assistance"
I have generated the key required to add in manifest, installed google play services and added reference to my project. my AVD is android 4.2.2(17)
I have also installed google api for android 4.2.2(17)
but still it isn't working.
Google play services are not installed in the emulators. You have to manually install the APKs for the required services you want to run on the emulator.
and as an alternative you can use genymotion emulator, they are pretty fast and come with google play services.