I have been trying for the last 2 hours now to get the map to work in the emulator on Mac. I have followed several suggestions on Stack such as this and this I have tried over and over again, are these out of date?
I have done several new projects, fresh virtual devices, cleaned all the time and it's just not working. Any suggestions?
I had the same problem as you ask after installing apk files I have successfully run the google map version 2 on Android version 4.2.2 level 17 emulator. I have spend 2 days to find what is the problem.
make sure you have updated version of google api with latest updated version.
and google play service in extra folder of Android Sdk Manager.
Link To follow all step to start map v2 on emulator: https://blog-emildesign.rhcloud.com/?p=527
steps:
1) delete your current AVD or Genymotion emulator
2) create new AVD or Genumotion emulator
- Device: select Device any
- Target: choose target as you want but make sure it should be 4.0 or greater
- CPU: Intel or ARM
- RAM, Heap, Internal storage, sd card: it should be lower according to your pc specification means if you have good RAM and process then go for the higher as you can.
you need to install
three apk files on emulator
1) com.android.vending.apk
2) com.google.android.gms.apk ( above both are given in the link)
Note: Google play service apk (gms) version should be same as your
google play service library mention in your code. Check google play
service library version name and download the same version of apk file
3) com.google.android.maps
EDIT:
if you have successfully install all these on your emulator without failure then you will definitely open google map on emulator.
one more thing I would like to suggest you that version of google play service library that you refer in you project should be same as you install google play service apk file. It is not mandatory but some time you may face the same problem google play service version miss match error.
I have found some link hope it will help you. Apk file download link:
For,
gms: http://uploaded.net/file/bnzl1si4
vending: http://www.androidfilehost.com/?fid=9390135922294521859
Hope it will help you.
Related
I'm trying to develop an Android app that has a native Google Maps control. Seems simple enough, but unfortunately I've run into a lot of trouble setting it up.
I have very carefully followed the instructions here multiple times with no success. Every time I try to load up my app, I get the message <my app> won't run without Google Play services, which are not supported by your device. I have confirmed in the settings that I do in fact have Google Play services on the device.
I have tried to uninstall and reinstall downloaded google services apk's, but abd does not allow me to uninstall it with the error DELETE_FAILED_INTERNAL_ERROR, I assume it is because I don't have root access.
You need to update your SDK and install the latest Google Play Services library under "Extras" section. The AVD can be launched using "android" binary under your SDK tools folder.
So I found the answer to my own question. I made a dumb mistake...
In my manifest, I entered my api key where it says API_KEY: android:name="com.google.android.geo.API_KEY but it should just be API_KEY. Changing this, and using Google Play services 9 instead of 10 fixed it.
This question already has answers here:
How to install Google Play Services in a Genymotion VM (with no drag and drop support)?
(17 answers)
Closed 5 years ago.
How to install Google Play Services on 6.0 Genymotion device?
For other versions this answer works, but not for 6.0
EDIT:
I've tried to use 6.0 Gapps from this source, but all of them failed to flash the emulator.
Ivan,
I found the solution here and followed the steps from the user #sinistance and it worked for me using the Nexus 5X Preview API 23.
To simplify this is the answer:
what image did you use? i'm using the preview nexus 5x image. here is the steps:
flash Genymotion-ARM-Translation_v1.1.zip then restart.
flash gapps-L-4-21-15.zip.
sign in into your google account.
flash benzo-gapps-M-20151011-signed-chroma-r3.zip then restart.
that's all
You can find all the files in the link above!
I hope it works for you!
Regards
Since Genymotion 2.7.2 and above follow these steps.
https://www.genymotion.com/faq/#google-play-services
Visit opengapps.org
Select x86 as platform
Choose the Android version corresponding to your virtual device
Select nano as variant
Drag & Drop the zip installer in new Genymotion virtual device
Follow the pop-up instructions
On Samsung Galaxy S6 - 6.0.0 - 1440x2560:
Flash Genymotion-ARM-Translation_v1.1
Flash open_gapps-x86-6.0-pico-20160524.zip
Please give it a try.
If Google Play Services on Android 6.0 crash everytime, you can try do the same things in this sequence. Maybe it will work.
Here is what I did:
Install a latest Genymotion (version 2.6.0 in my case). Make sure
the previous old (preview) Android 6.0 images are removed(Genymotion
-> Settings -> Misc -> Clear cache).
Add a new virtualdevice, select Google Nexus 5X and Android 6.0
image. It should download a new image from Genymotion website.Start
created Google Nexus 5X - 6.0.0 - API 23 - 1080x1920 virtual device.
Flash Genymotion-ARM-Translation_v1.1.zip (drag&drop the zip file to
virtual device window) and then restart the virtual device.
Flash gapps-L-4-21-15.zip and restart the virtual device again. Now
add Google account in the virtual device via Settings -> Accounts ->
Add account. Do not start Google Play! Ignore any crashes in sign in
process.
Flash benzo-gapps-M-20151011-signed-chroma-r3.zip and restart the
virtual device. Open Google Play in virtual device,update all
installed applications.
Start Google Now with long touch on home button to force dialog with
request to update Google Play Services. Update Google Play Services.
Now the device is prepared with working Google Play and Google Play
Services.
Genymotion android 6.0 with Google play service
For me it worked just to install a package (in my case the full) for x86 and Android Version 6.0 from http://opengapps.org/ by dragging the downloaded zip-file to the machine. A restart was suggested and done
Maybe some Apps won't work but you don't have to do anything else.
I hope I could help you with that answer.
For enable Google play service in genymotion marshmallow version
Download and install Install ARM Translation from here : http://filetrip.net/dl?4SUOrdcMRv
After installation reboot your device (Just close and restart )
After restart Download the gapps/5.1/gapps-L-4-21-15.zip flash from :
http://mirror31.downloadandroidrom.com/download/gapps/5.1/gapps-L-4-21-15.zip?token=432826691
After installation . reboot the device and update yourgoogle play service and google.
For enable Google play service in genymotion, as per answer you mentioned in your question you need ARM and Gapps.
So, Download gapps for Android Marshmallow from here and follow this answer.
Anybody tell me how to install apps on emulator from google-play store
Simple Answer:
Just install first Google Play store in your emulator from ADB. and then using your gmail account you can install apps as like in your Android Phone.
OtherWise as #Williams said get apk source from anywhere and install using adb..
Link for setup Google Play service in your emulator
Check Set Up Google Play Services
now Android 4.2.2 platform includes Google Play services. Just use an emulator running Jelly Bean. then no need to victim of using third party distributing play service apk.
Thanks..
i don't believe its possible to get APKs via google play store on the emulator; hacking concerns... The google play app is only available to certain licensed manufacturers. See similar question here
Simple Answer : Not possible to install the app from the Google Play in emulator because Emulator does not have Play Store app.
If you can get the APK from some source then you can install that in the simulator using the adb
you have to download 1.ARM-Translation_v1.1.zip and 2.gapps-jb-20121212.signed.zip.
1st you have to drag the ARM-Translation and a/c to instruction you will go.
2nd step you have to drag the gapps-jb-20121212 then a/c to instruction you will go then u see in your Genymotion emulator has playstore or some google apps ....
i think i will help to you....
I am new to Android development, I just got Eclipse for the first time a few days ago.
I've made a simple app in Eclipse which I've got running through the emulator, but it's pointed at Android 4.3.
In Eclipse I've gone to Window -> Android Virtual Device Manager -> Edit, but the only "Target" in the list is Android 4.3 - API Level 18. I am using Nexus 4 as the device to emulate.
I've Googled (and Stackoverflow'd!) around for this to no avail. I haven't seen any articles which clearly outline what needs to be done to get Android 4.1 to appear in that list, and if there are any steps afterwards that I need to follow.
Do I need to download anything; is it just a configuration thing?
Any advice would be much appreciated. Thanks.
You need to install the SDK packages for the versions you want to target. Open the Android SDK Manager from Window->Android SDK Manager, then check the box for the latest Android 4.1 (API level 16).
I think you have installed Android 4.3 image only.
Try to install other SDKs using android SDK Manager.
Go to ur direcotry where you have placed your android sdk and run sdk manager
You will get whole list of supported API's
Just go ahead and download the required one
Install SDK's and Plugin's if you haven't installed.. Go through the links I mentioned, you will have an actual idea.
Hope this helps.. :)
If want to configure in eclipse then you've to update the latest version in your SDK manager.You can also use android ADT-Bundle.it support all API level.You can download from the developer site.
I am using android G1 phone and now I have upgraded my SDK to 1.5 and I want to run my application on a physical device, but when I connect my phone to PC I'm able to install my app only when I'm selecting 1.1 SDK but not when selected 1.5 .
So is there any updates required for the device so I can proceed with 1.5 SDK? Also, if possible can you provide with a proper link? That would be great.
An update for your phone will be pushed OTA by your operator, just wait. If it is a dev phone look at HTC pages.
If you're in the US or UK you can find instructions on how to force-upgrade here. I did it on mine and it went fine.