Problems with android emulator in xamarin project MS VS 2015 - android

I have installed MS VS 2015. I've installed xamarin with all required staff like Android sdk etc. I have this options for xamarin project:
For both options I get this errors:
2>emulator: ERROR: x86 emulation currently requires hardware acceleration!
2>Please ensure Intel HAXM is properly installed and usable.
2>CPU acceleration status: Android Emulator requires an Intel processor with VT-x and NX support. Your CPU: 'AuthenticAMD'
How to fix it?

You find the details in this answer on stackoverflow:
In current AVD manager you can't. You just have the opportunity to use
ARM images which will not need hardware virtualization.
but, have you tried the Visual Studio Android Emulator? This emulator is a lot faster then the images from Google and it's free. We use this Emulator and it works like a charm.
Check the system requirements to ensure, the emulator works on your machine.
Edit
To enable Hyper-V look at this detailted answer. But note:
You must be running Windows 8 Pro or Windows 8 Enterprise. Hyper-V is
not available in basic Windows 8. Same applies to Windows 8.1.
Your CPU may not support Virtualization Technology (VTx)

Related

Intel HAXM Error when Installing on Windows 10 Home (No Hyper-V)

all!
Today was my first time installing Android Studio on my Windows 10 Home Edition laptop and things became complex quickly. Android Studio seemingly installed, but Intel HAXM didn't. (Error message is below.) Further Googling showed me that Hyper-V wasn't available on Windows 10 Home Edition and was seemingly forcibly removed/super disabled on a recent service pack release.
How important is HAXM for Android development since I lack an Android phone? If I don't use Android Studio, what Android emulator and version should I use?
Thankee!
HAXM is a cross-platform hardware-assisted virtualization engine (hypervisor), widely used as an accelerator for Android Emulator and QEMU. It has always supported running on Windows and macOS and has been ported to other host operating systems as well, such as Linux and NetBSD
It is Intel's virtualization extension for Android Emulator on x86.
You can use an emulator with the ARM image instead of HAXM provided that you installed it in your SDK manager.
Check your SDK manager and install the ARM image for the API level you want, then go to the AVD manager and make a virtual device using ARM as the CPU.
Note: ARM images are not available in the latest API levels, but it is available on API level 25 below
I think you don't need it for work with Android Studio.
If you don't have an Android Phone, you will need to set up Genymotion.

Android Emulator not running on AMD Ryzen 2400G

I tried to use the "Android Virtual Device Emulator" on my Windows-PC using a AMD Ryzen 2400G and Windows 10 Professional. I activated the Windows-Hypervisor-Platform, restarted my PC and Android Studio, but it still says "x86 emulation currently requires hardware acceleration". How can I install the hardware acceleration using an AMD Processor?
In order to run the Android Emulator with an AMD processor you need to do the following, according to Google
AMD Processor - Recommended: AMD® Ryzen™ processors
Android Studio 3.2 Beta or higher - download via Android Studio Preview page
Android Emulator v27.3.8+ - download via Android Studio SDK Manager
x86 Android Virtual Device (AVD)
Windows 10 with April 2018 Update (version 1803)
Enable "Windows Hypervisor Platform" via Windows Features: Search for Turn Windows features on or off and check this option, which is present in all Windows editions, including Home edition starting from version 1803. This term can be confused with Hyper-V, but they are different things. You only need to turn the former on in order to use the emulator.
I followed all these steps in my HP Envy X360 with AMD Ryzen 7 2700U and was still getting the "emulation currently requires hardware acceleration" error. What fixed it for me was turning on "Virtualization" in my BIOS settings. It may have another name in other BIOS systems, but apparently you need to turn the setting that allows virtualization on as a final step.
FYI, it's usable but laggy in my system (256 GB SSD + 8 GB RAM). I wouldn't use it for everyday work, only for some sort of emergency case. I'd suggest to stick to a physical device when possible, if you have similar specs.
I had all the requirements listed by schv09, like good versions and virtualization and Windows Hypervisor Platform enabled, but Android Emulator did not work for me either with Ryzen 5 1600. I updated Windows 10 from version 1803 to latest 1903, and now it works. I can't tell what has changed.

(AMD using Windows & Android Studio) ERROR: x86 emulation currently requires hardware acceleration

This is my experience to the apparent update for users with AMD based computers on July 9, 2018.
https://android-developers.googleblog.com/2018/07/android-emulator-amd-processor-hyper-v.html
To start, I'm using a Ryzen 1700x and Windows 10 Pro that just finished it's round of windows updates yesterday.
I think I followed everything to the letter but it continues to display that error.
10:40 PM Emulator: emulator: ERROR: x86 emulation currently requires
hardware acceleration!
https://i.imgur.com/Rdm7CyH.png
I'm currently using Android Studio 3.2.1 and Android Emulator 27.3.10
https://i.imgur.com/TTtbHu0.png
I made sure AMD's virtualization option "SVM Mode" was enabled in BIOS.
https://i.imgur.com/8ouqmxb.jpg
I have tried enabling BOTH Hyper-V and Windows Hypervisor Platform. I have since disabled Hyper-V since it isn't a requirement, but kept Windows Hypervisor Platform enabled as listed. Either way, it still doesn't work.
https://i.imgur.com/d3Y79NK.png
https://i.imgur.com/vyzpQck.png
I have also tried downloading the Canary build 3.3. Still nothing.
I have also tried completely uninstalling my Android Studio, re-downloading and re-installing it. Still nothing.
Any ideas??
The following answer is not mine, It was taken from this question:
Run Android studio emulator on AMD processor
Go to this URL and give him appropriate credit to Jorge Valdés.
To solve this problem you have to install the and Android OS for another chip different from the x86 architecture, to do this follow this instruction:
-Create Virtual Device
-Choose any hardware
-Now in system image you need to click on the "Other Images" tab
-Select an image to install. IMPORTANT: Notice that for AMD in the "ABI" column it has to say: ARM EABI v7a or ARM 64 v8a
-Install it and restart Android Studio
I did try and It works.

Android Studio emulator minimum CPU requirement

I used to have HP Pro Book 4320s(2010 laptop) and I downloaded Android Studio with no problems. However when I tried to run emulator, Android Studio said CPU is too old to support emulator. So, what is minimum requirement for emulator?
Also if you can't run emulator, would real device be able to run an app regardless CPU or something?
In order to run the emulator, you need to have a CPU that supports HAXM, Intel VT-x, or AMD-V for virtualization. Processors like i3,i5,i7 and recent AMD processors have that support.
Yes, you can run the app on a physical device regardless of the CPU.
If getting access to a physical device is challenging, then I suggest checking out the Firebase Testlab . You can test your app in the cloud and see if it runs, quite cool.
Please have a look of below content according to android official documentation. I hope it will help you
The Android Emulator has additional requirements beyond the basic system requirements for Android Studio:
SDK Tools 26.1.1 or higher
64-bit processor
Windows: CPU with UG (unrestricted guest) support
HAXM 6.2.1 or later (HAXM 7.2.0 or later recommended)
The use of hardware acceleration has additional requirements on Windows and Linux:
Intel processor on Windows or Linux: Intel processor with support for Intel VT-x, Intel EM64T (Intel 64), and Execute Disable (XD) Bit functionality
AMD processor on Linux: AMD processor with support for AMD Virtualization (AMD-V) and Supplemental Streaming SIMD Extensions 3 (SSSE3)
AMD processor on Windows: Android Studio 3.2 or higher and Windows 10 April 2018 release or higher for Windows Hypervisor Platform (WHPX) functionality
To work with Android 8.1 (API level 27) and higher system images, an attached webcam must have the capability to capture 720p frames.
https://developer.android.com/studio/run/emulator

AVD not getting Created in Android Studio

I used windows 10. and i have a VISION AMD Processor when i trying to start an AVD at that time below error is occurred what is the solution for that types of error.i already install all tools and extra services from SDK and i have all SDK version.Please help me out for Solution.
ERROR: x86 emulation currently requires hardware acceleration! Please ensure Intel HAXM is properly installed and usable. CPU acceleration status: Android Emulator requires an Intel processor with VT-x and NX support. Your CPU: 'AuthenticAMD'
You can cross check with this post Running the new Intel emulator for Android

Categories

Resources