Android Studio Emulator not working in windows 11 - android

My laptop Setup:
Windows 11 Pro 21H2 22000.132
11th Gen Intel(R) Core(TM) i7-11370H # 3.30GHz 3.00 GHz
Android studio latest Atric Fox 2020.3.1 build
For me, everything was working perfectly with Windows 10 and then I updated my laptop to windows 11. And after that when I start my android studio and run build on Emulator after some time waiting windows throws an error as
and the full one is shown below image
My device windows features are
I didn't change anything in android studio settings and my laptop settings but still got issues with my emulator.
Help me to figure out the issue or resolve it. I searched a lot regarding this I didn't find any appropriate solution regarding this issue. But I found that issue mentioned [google issue tracker](https://issuetracker.google.com/202188690 android emulator does not work on windows 11 (if we use hyper v) plz fix it) but priority is a little low as per google
Thanks in advance

Yes windows 11 breaks android emulator on some Intel and AMD chips. The is currently no official fix for this yet however there is a fix from the open source community in the link below
https://issuetracker.google.com/issues/202188690#comment18

Related

Android Emulator stuck loading screen on M1 mac/ Apple Silicon

I had downloaded Android Studio on my M1 MacBook air but I can't run the emulator and it just gives me an error. I search Android Studio requirements for mac and it says that it requires mac os 10.10 or higher and a minimum of 2 GB disk space and 4GB of ram. Anyone have this issue and how do I solve it?
I try download the arm image android studio it is stuck on the loading screen for the emulator.
As for now (19/11/2020) any of the Virtualization tools do not work with the new Apple M1 macs. So things like docker, emulators etc. We might have to wait a bit until this is fully supported unfortunately.
Good news !
Edit on 28th July 2021 🎉 🌈
Apple Silicon Support
There is an arm64 release version available for Android Studio Arctic Fox (2020.3.1)
You can download it here https://developer.android.com/studio/archive
When NDK runs into Unknown host CPU architecture: arm64 you can solve it here
End of beta ! Thank you
Edit on March 2021
I can confirm, this preview of Emulator works properly
https://androidstudio.googleblog.com/2020/12/android-emulator-apple-silicon-preview.html
In the blog there is a link to a private repo (2021-Jan-04). They moved repo to google and there you find V3 https://github.com/google/android-emulator-m1-preview/releases
Since v3 even audio-out works (no audio-in)
Edit on 4th Feb 2021
Now audio in and out works properly https://github.com/741g/android-emulator-m1-preview/issues/10#issuecomment-773532762
Edit March 2021
You can simply use one of them and it's working out of the box
On August release notes you can see on the emulator for Arm host section an entry where they said the support for M1 is in progress.
Check the link below:
https://developer.android.com/studio/releases/emulator#emulator_for_arm64_hosts
As of today the android emulator is up and working on the Apple Silicon here's a working demo from a googler
source: https://twitter.com/GoogleLfy/status/1332474914398322689
And the known issues here: https://androidstudio.googleblog.com/2020/12/android-emulator-apple-silicon-preview.html
we can expect the stable release by the end of 2020
here's a conversation about the same https://www.reddit.com/user/lfy_google/
Android studio has still not released a modified version for M1 macs, the version you are running, was originally made for intel chips, and is running via rosetta2. And rosetta does not support virtualisation, so you cant run emulator, but you could do all else coding stuff with minor bugs, for testing your code you may use a physical android device and it works just fine...please let me know if further problem exists...
This is the working emulator done by Android developers https://github.com/google/android-emulator-m1-preview
it works like a charm
I heard that the emulator won't work due to arm architecture of the apple silicon. Using a phone for debugging might be the only option. I also heard that android studio were working on an update for the M1.
For other ARM devices, it should be involved as an Instruction Set problem, in that case you can go to the AVD Manager of your AS and when create new virtual device, make sure to download the system image with arm64-v8a ABI, which is shown as bellow.
For Mac M1 chip, these arm64 images can not solve the problem and for now the best way is to wait Google release the compatible images.
There is a rudenmentary beta of the emulator for Mac M1 here
github link
Android has released beta emulator for M1 chipset
Please check this think to beta release
https://androidstudio.googleblog.com/2020/12/android-emulator-apple-silicon-preview.html?m=1
Currently, Android Studio only supports the HAXM Intel version (which isn't compatible with ARM processors) of virtualization, to run the emulator. But maybe in the coming weeks they might release the compatible versions for apple silicon processors. Till then the only option is to use a physical device.
there is an Android Emulator Apple Silicon Preview in the next documentation
https://androidstudio.googleblog.com/2020/12/android-emulator-apple-silicon-preview.html
android studio have made a rough initial preview of the emulator running on Apple Silicon.More details are available in this link below
https://androidstudio.googleblog.com/2020/12/android-emulator-apple-silicon-preview.html
Also you can download DMG file from GitHub:
https://github.com/741g/android-emulator-m1-preview
On my M1 machine, the emulator would get stuck ( not open ) and the dock icon would say 'qemu-system-aarch64' and then that was it.
I managed to get the emulator to start by running it via the terminal and adding the gpu host flag
emulator -gpu host -avd Pixel_5_API_32
P.S. I couldn't find the right stack issue, so I'm leaving this here.
It's because the new M1 chips run on arm Architecture and not x86.
You have to download the arm compatible virtual devices those are available in the other images tab inorder to run those emulators.
Also try this:
Wipe data of the virtual device by right clicking it in AVD Manager, then rerun the project.
Check the Android Emulator box in SDK Manager -> SDK Tools
Download the android-emulator-m1-preview.dmg from
https://github.com/741g/android-emulator-m1-preview/releases

Android emulator doesn't work on Apple M1 chip

I've tried to run android emulator on an Apple M1 chip MacBook but it doesn't work and AVD Manager shows an error with the message: Could not start AVD. It seems the root of this problem is that M1 chip doesn't support virtualization and AVD needs VT-x for x86 images. Most of the images are based on x86 and arm based images aren't provided for latest android versions. Is there any solution to bypass this issue? (Except using physical devices and old images)
create AVD with arm64 based image will help to resolve the issue.
UPDATE: Here is the link to the Android Emulator Apple Silicon Preview:
https://androidstudio.googleblog.com/2020/12/android-emulator-apple-silicon-preview.html
They are working on it, but it will take time. I found some preview on Twitter - Preview of Android simulator on M1 And some solutions will be available at the end of the year. Maby.
And good source for the following is here on Reddit: ARM-based Macs for Android Development?
I doubt there is a workaround as the AVD uses Intel based API's to run the emulator, and because Apple broke up with Intel it won't work. You might just have to use a physical device or wait for a update.
That being said, there is work being done to support ARM based hosts.
Good news !
Edit on 28th July 2021 🎉 🌈
Apple Silicon Support
There is an arm64 release version available for Android Studio Arctic Fox (2020.3.1)
You can download it here https://developer.android.com/studio/archive
NDK builds doesn't work Unknown host CPU architecture: arm64
Solved https://stackoverflow.com/a/69540773/1079990
End of beta ! Thank you

Running android emulator using "Android Emulator Hypervisor Driver for AMD Processors"

EDIT : This issue has been resolved, please see https://stackoverflow.com/a/61048046/5522344 . It needs Windows 10 1903 or above.
I am trying to run Android Emulator on Windows 10 1803, as per the post here.
The requirements are
AMD Ryzen processors - mine is Ryzen 1600
Virtualization enabled - yes checked that
Hyper-V turned off - yes
The emulator version is 29.2.3 or later
I can run the emulator using the Hyper-V enabled.
But I am unable to run the emulator after going through the mentioned steps.
This is the Android Studio version
Current Settings as per the post
Emulator Version
Success message after installing the driver
Emulator fails to run
Can anyone point out what I missed here?
IMHO It is not the right android version:
https://github.com/google/android-emulator-hypervisor-driver-for-amd-processors#download-and-install
Android Emulator Hypervisor Driver for AMD Processors is released
through android-studio. However, only Android Studio with version 4.0
canary 5 or above can both download and install/update the driver.
Otherwise, the Android Studio will only download the driver package
without performing installation. In the latter case, users are
required to install the driver manually.
Looks like android-studio 3.2.1 will only download the driver.
The link to download preview versions is:
https://developer.android.com/studio/preview
I tried with 4.1 CANARY 5 and it works
The best you can do is filing a bug to google. This is not a suitable question to address at Stackoverflow. - from Author of the Software.

Android Emulator UI broken

I run Android Emulator
PC: MacbookPro Mid 2015
OS: Windows 10 Home
Android Studio 3.1.3
I tried to create many AVDs but the results were the same.
also tried to change the Windows display resolution, but no help.
Do I miss any configuration?
Update.
I can correct the UI by choosing Software Rendering
But it is very slow.
I found the issue is because of Driver for GPU
Corrected driver for Intel(R) Iris(TM) Pro Graphics 5200
The issue gone.

CPU acceleration status: KVM is not installed on this machine (/dev/kvm is missing)

I have worked in eclipse for android, but now i have shifted to android studio, After downloading android studio from here :
setup sdk with studio
created android project
created an AVD (cpu x86_64, android 5.0.1 Nexus one, api 21 )
But when i tried to run avd, it is giving an error below
I'm on ubuntu 14.04 64 bit.
need help, thanks in advance !!
I have solved this issue by enabling virtualization in BIOS, see this for more details, :)

Categories

Resources