Unable to start API 29 emulator (Android 10) - android

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 ...

Related

Multiple Displays option not showing on Android Emulator 29.2.0 update

Recently Emulator 29.2.0 Stable released. Here is the related document https://androidstudio.googleblog.com/2019/09/emulator-2920-stable.html.
After the update, my Emulator is not showing the Displays option in Emulator as mentioned in the docs above.
As per the document, I have created an emulator with Android 10 (Q).
Here is the screenshot.
Note: Invalidate and Restart is not working. Already tried that.
I have tried with multiple system images of 29 api level and came to know that, the Display tab is only visible with the image with API level 29. Even after creating emulator with image of Q is not working.
For more check below screenshot to get more idea.
Yes with the answer of #pRaNaY I just checked that is it working with x86 and x86_64 ABI image file?
And yes it is only working with API 29 with x86 and x86_64 ABI image file.
But it is not display in Android(Q)

In eclipse I a getting the API level 20 .I want ot use lower versions of API

How to change API level. when selecting this API level it shows no CPU/ABi available and also I am not able to add text fields it throws an exception.
Image 1Image 2
In Eclipse go to manifest.xml
<uses-sdk android:minSdkVersion="int" />
In android studio: go to your app Gradle there you can find the minSdkVersion. Lower it to the version you needed.
android {
....
defaultConfig {
....
minSdkVersion 17
....
}
}
Quick Fix: Uncheck installed checkbox to see other downloads and try to refresh android sdk manager, restart it or restart the computer. API 19 worked fine for me before I moved to android studio.
I'm not sure if API 20 is supported in eclipse, I recommend Android Studio for android development. Anyway, if you have an old PC that does not meet android studio minimum requirement, download IntelliJ IDEA https://www.jetbrains.com/idea/, it's a bit lighter and free and require 1 GB of RAM (But 1 GB is very bad, you need at least 2 GB without running android emulator). However, if you still want to work with eclipse I think you need API 19 you have to download it manually from the web and move it to android SDK location. Or you can install android studio to download SDK without using it.
Newer APIs are way better, they have more libraries that supports both old and new android versions. It's really worth upgrading to Android Studio.
For the CPU/ABi error check this post Android 4.3 Virtual Device CPU/ABI - No system images installed (eclipse)

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

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.

Test app with android system image

I have downloaded Android 4.4 (KITKAT). There is an android-19 system image in folder called system-images in android installed location in my pc.
I need to use this Android 4.4 system image to test my app on the Android emulator.
How can I use this ? How can I create an AVD using this ?
Finally I am able to run AVD with android-19.
Previously I was edit the existing AVD and changed Target to Android 4.4 - API Level 19. It's not loaded the AVD.
Now I created a new AVD with Target Android 4.4 - API Level 19. It takes a few minutes to display the android kitkat home screen. But it worked as charm.

Android 2.3 API is not available as a target option for AVD

I am new to android development, and I am trying to create an AVD for testing an app before pushing it to my phone (htc desire running android 2.3.5).
I am using the ADT bundle, and with SDK manager I have downloaded these:
4.2.2 (API 17)
4.1.2 (API 16)
2.3.3 (API 10)
2.2 (API 8)
But when trying to select target of the AVD, the only available options are API 17,16 and 8.
What is wrong?
Update:
I've already tried deleting and redownloading the API and it shows up in the android-sdk/platforms dir.
Restart eclipse after install packages i also have same problem and after restart eclipse i got all api levels in drop down list
I had the same problem because I had downloaded the sdk twice and my SDK manager kept updating first SDK while my IDE was working with the other one. SO check the preferences of your IDE and see if it points to the correct one. (in Eclipse go to windows> preferences> SDK location)
For Android 2.3.3, there will be three entries of relevance in the SDK Manager:
"SDK Platform", which for older API levels like 10 will contain the ARM emulator image
"Google APIs", which will contain an emulator image that has Google Maps in it
"Intel Atom x86 System Image", which will contain an emulator image that runs x86 opcodes instead of ARM opcodes (and, with the proper setup of your development machine, can run the emulator much faster)
If you install one or more of these, you should get API Level 10 appearing an an option for setting up an AVD.
If that does not work, you might consider editing your question and posting screenshots of your SDK Manager (specifically the 2.3.3 portion) and the AVD Manager (specifically your drop-down of available API levels).
Try updating the 2.3.3 API.
And you can also try to use BlueStacks if you wish to first test your app before trying it on your device.
Delete that api from SDK Manager and download it again.

Categories

Resources