How to create AVD with Android & (7.0) with Google APIs? - android

When I downloaded and select "N" (API = 24) for the AVD, I see the following message on bottom right:
Consider using a System Image with Google APIs to enable testing with Google Play Services.
Is this image not available yet? or am I missing something? I dont see it in the SDK Manager yet.

As of SDK Tools 25.1.7 and Intel x86 Atom_64 System Image Rev. 6, it appears that there is no longer a separate emulator image for the Google APIs - instead, the normal emulator image now includes the Google APIs by default. So, the message shown in the "Recommendation" section when creating an AVD appears to be old/incorrect.
I was able to run this project (using gradlew installObaGoogleDebug), which requires Google Play Services for maps and other items, by selecting Nougat / API Level 24 / x86_64 / Android 7.0.
EDIT Nov. 3rd 2016
It appears this was a temporary issue with the emulator image. As of SDK Tools 25.2.2 and Intel x86 Atom_64 System Image Rev. 7, when I try to run the same app on the same emulator image (API Level 24) I created above, it now says "OneBusAway relies on Google Play Services, which is not supported on your device".
However, it looks like there is now an API Level 25 (Android 7.1.1) emulator w/ ABI x86_64 available for download that does explictly include the Google APIs - see area circled in red below (note that the update message still seems to erronouesly appear):

I had the same issue recently, I think it's probably a bug with the tool.
I was able to solve it by downloading the x86_64 version, and then it allowed me to use both the N x86 and N x86_64 emulator images.

Related

Unable to start API 29 emulator (Android 10)

As the title says, I have tried to create an Android 10 emulator, when trying to start the emulator nothing happens, only the phone appears on the screen but the device screen remains black, I do not get any error, I have waited but nothing ever happens. When I touch the close button I get "The emulator process for AVD Pixel_4_API_29 was killed"
I have tried deleting the image and downloading it again, installing the image on Pixel 1, 2, 3 and 4, run emulator with -writable-system, increase RAM, cold boot... unsuccessfully.
I have the rest of the emulators installed (from API 16 to API 30) working fine
The image I downloaded from Android Studio is located at "C:\Users\PCDELL\AppData\Local\Android\Sdk\system-images\android-29\google_apis_playstore\x86"
Upgrade
I tried with:
API 29 x86_64 (Google Play)
API 29 x86 (Google APIs)
API 29 x86_64 (Google APIs)
API 29 x86_64 (Android Open Source Project)
The result is the same
After many tests the only thing that worked for me was:
Uninstall Intel Hardware Accelerated Execution Manager (HAXM) version v7.7.0
Enter https://github.com/intel/haxm/releases and download HAXM v7.4.1
Install HAXM v7.4.1
I suppose that a not so old version could work but I went to the extremes and downloaded the oldest one from the link
*I have the latest version of Android Studio (4.2.2) and also the latest version of the emulator (30.7.5)
after multi tries i backed to version 30.7.4 and it worked fine
down it from this link
https://dl.google.com/android/repository/emulator-windows_x64-7453540.zip
and extract it in sdk folder after deleting old emulator folder
another workaround
create text file and insert this two lines in it
Vulkan = off
GLDirectMem = on
save it in .android path like
C:\Users\Sherif.android
don't forget to change the extension to .ini
If you are not forced to use specifically Pixel 4 with API 30, then what worked for me was going down to Pixel2 API 30.
I know this is not much help if you are looking for a specific device but ...

AVD Google API's do not display available CPU/ABI

I have downloaded SDK tools and installed Google API's Intal x86 Atom image, however when I want to create my AVD it sais there is no system images installed for this target. BUT I have downloaded everything. I am using Ubuntu, on Windows machine same configuration works perfect, also for my colleagues same configuration works just fine.
If I select as target Android API 23, not Google API's it's okay, but I don't need Android API, since it's not working for me. I saw lots of reported defect, but none of them could help me.
Anyone has any idea that's going on there?
I had the same problem myself today and I found a bug report:
https://code.google.com/p/android/issues/detail?id=210223
To quote the solution:
There seems to be some underlining refactoring which means the configuration now required is:
Target = Android X.X - API Level XX
CPU/ABI = Google APIs Intel Atom (x86)
So, to create a new AVD with Google APIs support, just don't pick Google APIs as the Target. Pick generic Android with desired API level as the Target and then pick your desired Google APIs version in CPU/ABI. It works just fine, you will get Google Maps etc. on the AVD.
About that "but I don't need Android API, since it's not working for me" - I'm not sure what do you mean. You can't have Google APIs without using Android APIs, because Google APIs are running on Android device.

Android studio missing ARM image for gingerbread and honeycomb?

I want to create a AVD to test my app which uses google APIs in gingerbread 2.3 and honeycomb 3.2,
SO posts said that basically 2 choices exist
x86 image ->faster
ARM v7->slower but most actual devices run it
and the the two images also come with a Google API version which can help test apps using G-Maps etc
I use a Intel 64 bit process with HMAX installed ,vt-x and working fine
For API 21(Lollipop) I created an AVD with googleAPIx86 and x86-system-image and its fine and fast
(cause it seems for the googleAPI image need the corresponding system image should be there,for API 21 I could get both images for x86)
For API 19(Kitkat) also I icreated AVD with googleAPIx86 and x86-system-image and it works
For API 18(Jelly Bean ) the google-api is available only in the ARM version, so i cannot use the x86 system image even though it is faster , so i created AVD with google-api(ARM version) and corresponding ARM-system-image
For API 15(Icecream sandwich ) Also the same as API 18 ,Used ARM for both
The problem now is
For API 13(Honey Comb) and API10(GingerbBread) the Google-API is available only in the ARM Version but the system image is present only in the x86 version.
So is there anyway to run my app using google APIs in these two emeulators ?
(NOTE:AVD Shows error and doesn't if i use a googleAPI-arm with x86system-image)
See screenshot below:
API 10 and 13 have only x86system image but only google-api-ARM
For API 13(Honey Comb) and API10(GingerbBread) the Google-API is available only in the ARM Version but the system image is present only in the x86 version.
ARM images exist for all Android versions. However, it was only starting with API Level 14 were they called out into a separate installable item in the SDK Manager. In prior API levels, the ARM image comes as part of the "SDK Platform" item.

How to use the x86 Android emulator on Linux?

The latest Android sdk has an x86 emulator, which is supposed to help with performance. How can I create an image for it? When I go to make a new avd I see a dropdown for CPU/ABI but it is set to "ARM" and disabled.
Step #1: Download the Intel Atom x86 System Image - API Level 10 via your SDK Manager.
Step #2: When creating an AVD, choose Intel Atom x86 System Image - API Level 10 as your target.
At the present time, the only official x86 system image is for Android 2.3.3 (a.k.a., API Level 10). There is a third-party build of an Android 4.0.3 system image from the AOSP that you can also install and use, though it is unofficial.
Download and install Intel Atom x86 System image. You can use the latest version if you want.
Now follow instructions at http://developer.android.com/guide/developing/devices/emulator.html#accel-vm

Android x86-based system image not found in SDK rev 18 update

Yesterday I've updated Android SDK to rev 18, but there's only ARM EABI v7a system image for API level 14 & 15, while in this tutorial they say I could use x86-based system image for better & smoother performance of emulator. I've check in sdk-folder\tool\ and "emulator-86.exe" also exists, but no x86 AVD created to run with this. I also install HAXM and it works fine in my machine. In GUI AVD creation, the CPU/ABI dropdown box also be disabled for every API level.
So where I could find and use x86 based system image for my Android SDK? Any help is appreciated. Thanks
You can also download images for use with HAXM and the emulator direct from Intel's website. The current one at this link is API 19 (4.4).
15 is the current top API level. Only the SDK Tools and the plugin have a revision level of 18. In Windows systems you will find your AVDs below: \users\you\.android\avd

Categories

Resources