how to get Android_Accelerated_x86 emulator? - android

Emulator in the image below is one of the fastest emulator in xamarin. I have 2 computers and 1 of them has this emulator somehow installed. whatever I tried and I searched all over, I cant find out how to install this emulator on my other computer. Does anybody know how do I get this emulator. something similar described here but it is not the same at all.
I have already api level 23 and intel atom(x86) for this api level installed
I have installed extras in android sdk manager as below

There are two ways of getting an x86 enabled emulator.
First is by installing the Intel HAXM emulator. To do so open Xamarin Studio click on tools and open SDK Manager. In the Extras folder you will see an entry Intel x86 Emulator Accelerator.
An even simple solution is to install Android Studio and during the installation set the SDK path to the one configured inside Xamarin Studio. The benefit is, that you can use Android Studio for stuff like memory monitoring, CPU usage and such as well as getting a better designer for your layouts.
I described it for Xamarin Studio but the steps basically applies to Visual Studio as well.

I found the answer for my question. Just for anyone who will have same interest here is the answer. I dislike xamarin android emulators in general. I used to test my app using real device rather. Advantages were,
I didnt need any virtualization whatever hassle to be installed like hyper v
They occupy a lot of space on my ssd drive
but this emulator is beautiful, fast and light. It occupies only around 700mb. I highly recommend this emulator to anyone.
It comes with VS 2017 RC installation but you dont need to install VS 2017. It is also working with VS 2015. Just download the VS 2017 installer and choose the emulator only from the list.
PS, I guess most of the xamarin presentations made by microsoft and xamarin is with this emulator :)

Related

Has anybody ever got the emulator working with a webcam?

a bit of a reverse question.... We're looking to develop apps using vs 2017 and Xamarin. However, we simply can't get the Android emulator to work with a usb webcam on a windows 10 PC.
We've just running the emulator, no visual studio code and using the camera app on the emulator. We've tried all the different version of the OS, all have the same result... If we set the front or back camera to emulate, we see the black and white checkerboard but if we set it to webcam(0), we get a could not connect to camera error msg.
We have also tried all the suggestions in similar questions, i.e. clear the memory, increasing sdcard.size etc.
Android studio's emulator has an error "can't connect to camera"
Android Emulator unable to open/connect with real webcam
Nothing seems to work...and none of the above answers have a positive answer (other than use a different emulator, which we are about to try)
So my question is "has anybody ever got this to work" or we hunting for a unicorn and it just doesn't work?
Well to be honest, the unicorn was there the first time I connected my cheap Genius USB camera from 2007 into my Windows 8.1 PC and configured the Back Camera as Webcam(0) in the Android emulator, to test a barcode scanning app made with Cordova 7.1.0 CLI.
I would suggest you to try with Android system images from different API levels (I think I used Android 5.1 or 6.0 for my tests) and also, why not, update the Android SDK tools. (I used the old SDK tools 24 at the time). If using the standalone SDK manager instead of Android Studio (like I do) follow these steps to update your SDK tools to version 27.
I hope this helps, anyway, you now know that the unicorn may be elusive but it can be found if you have the proper settings.

Xamarin wont deploy to Android emulator no errors

I am new to Xamarin and ran into immediate trouble while doing a basic Hello World example. When I click Debug, the Android emulator starts but never finishes even after 20 minutes. The emulator just sits on a black screen. I never see the Android boot sequence. I can build the solution with no errors. I can also open the emulator by itself through AVD without any errors. My laptop is VS 2017 Community, Win10 Fall Creator, i5-6200, 8GB RAM, GeForce 940M, and 50GB free on SSD. I have tried:
Reinstalling VS
Reinstalling Java SDK and Android
Updating Android SDK packages
Changing registry location of SDK
Turning off Fast Deploy
Creating new AVD's
Try updating your SDK's its under Tools > Android > Android SDK Manager.
This happens to me before, i did reinstall only to find out it was the emulator issue. to avoid yourself in reinstalling the visual studio and save you time... you can try it on your actual android device. then let me know how it goes. hope it helps.
After wasting many hours on this, I finally can across the answer. You can't use the standard AVD and SDK managers. Google removed support for them after SDK Tools version 26.0.1. https://learn.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/
If you need to make an Oreo 8.0 or 8.1 emulator, install Xamarin Android SDK Manager. Caution, this will prevent you from using the built-in AVD and SDK managers. From then on, you will use this new SDK manager and the command line to create and launch AVD's.

android emulators for xamarin forms

I'm having trouble getting any android emulator other than "Xamarin Android Player" to work (only with older versions of android).
What kind of virtual device/settings/properties should I use so that I can test newer versions of android and not have to wait 15 minutes for the emulator to startup?
is there a "Go-to" virtual device/emulator setup that doesn't take 15+ minutes to load?
(using windows 10/Visual Studio 17/2015)
The Xamarin android player has been discontinued for a while. As a visual studio user you should probably be moving onto the Visual Studio Android Emulator. There is a guide here on setup
https://learn.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/
it is also available with visual studio 2017, and if i remember correctly is an option available in the Vs2017 installer.
I highly suggest Genymotion for most uses. You can download the free version which works well for most basic things (there are also a few small things you can do using the adb command prompt without having to buy the full version, such as taking screenshots).
Link to free version
They have a good list of different devices. I have also recently even got it successfully connecting to my Parallels Windows machine while the emulator is running on my Mac. Let me know if you need help with this specific scenario.
The other option for you is the Visual Studio Android Emulator. When it first cam out I tried using it but was not able to because I would need to run it on a Parallels VM which does not allow nested virtualization.

Androild Studio Emulator Not Launching: Intel Haxm Not Installed

I was trying Android Studio - successfully installed it but couldn't launch the emulator and the error message was Intel Haxm wasn't installed. I checked my setting and realized it was installed.
I tried to re-run it several times and the same thing happened.
I tried to install SDK 17 and the error was still there.
May I know what might be causing this? And how should we solve it?
Thank you.
You was created an AVD with Intel Atom system image, so make sure that your CPU is Intel. If yes, see this instructions about installing HAXM on your computer.
If HAXM won't to be installed, please make sure that your CPU is strong enough to use HAXM. Then, change the system image of your AVD to ARM-v7 or Armeabi.
System image also called with CPU type of the emulator on AVD.
Another option to run Android Apps on computer:
If you are not able to use Android Studio Emulator (at all after trying above given solutions), then you can use Genymotion. It comes with free as well as paid versions. You can download this software on your Windows/Mac/Linux based computer and configure it with Android Studio/Eclipse.
Watch this video for more details: Install and configure Genymotion with Android Studio
Genymotion is fast and reliable and also has latest (till Lollipop 5.0) android support and provides many emulator themes as well.
I hope this answer helps you if above mentioned solution doesn't work.

Visual Studio Android Emulator won't run application

I recently got into Xamarin development. I have a lot of experience in Xcode making iOS apps and the iOS side was very straight forward. Now I'm trying to implement Android. I downloaded a Hello World example to get my bearings. When I run it I have no problems getting the simulator to show up (MonoForAndroid_API_10 and MonoForAndroid_API_12) but the actual application doesn't run, and does not show up anywhere on the simulator. Essentially whenever I use run or run with in Xamarin on Android, it pulls up a fully functioning, albeit empty simulator.
How do I get my application to run on the emulator?
Like the other commenters, this is most likely just a symptom of slow emulator on your machine. I'm running Xamarin-Android development on my 2010-era OSX machine in mavericks with 8GB RAM, and it is slow-slow-slow, but usable. Try to find the Intel x86 speeds improvements (look for HAXM) and you will find that the emulator will be much much faster.
And yeah, get a real handset and plug it in to your computer: always much faster than emulation.
later edit Get Genymotion for Mac OSX or for PC/Windows or PC/Linux. It's way way way faster than the other emulators. I have since found that this is as fast, or faster, than running the App on my connected Android phone. It's certainly simpler in not having to have the device plugged into one of my USB ports, and allows me to code and test on the train. http://www.genymotion.com/
Don't know if my issue was the same but finally this troubleshooting helped me to run emulator https://msdn.microsoft.com/en-us/library/mt228282.aspx#ADB.
I was missing key Android SDK Tools with string value Path in registry Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node
I've created it manually and it worked.
UPDATE
Before I got the issue with running emulator, I couldn't see it in Visual Studio. The reason was I've installed VS Android Emulator through standalone installation, not through VS Installer. It had to be installed there as well.
I had the similar issue, and then I deleted the existing device simulator and reinstalled again and it started working.
As I use a different SDK, in my case
Go to Tools > Options > Xamarin and set the Android SDK path.
Sometime Visual Studio changes this configuration;
2020 Update:
I followed the most voted comment, however, with Visual Studio 2019 updated recently, the steps have changed a little. Here is what previously worked:
WHAT WORKED BEFORE
"Don't know if my issue was the same but finally this troubleshooting helped me to run emulator https://msdn.microsoft.com/en-us/library/mt228282.aspx#ADB. I was missing key Android SDK Tools with string value Path in registry Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node
I've created it manually and it worked."
WHAT TO DO INSTEAD
Nothing. Don't mess with the path.
WHAT WORKED BEFORE
"Before I got the issue with running emulator, I couldn't see it in Visual Studio. The reason was I've installed VS Android Emulator through standalone installation, not through VS Installer. It had to be installed there as well."
Previous instructions image
WHAT TO DO INSTEAD
a. Go to Tools located at the top of the VS window, Get Tools and Features, go to Individual components, using the search tool in the pop up box, search "emulator", once you get the result, make sure both Google Android Emulator (API Level 25)(local install) and Intel Hardware Accelerated Execution Manager (HAXM) (local install) are both checked.
b. Close the solution(s) and restart VS then reopen the solution(s).
c. To deploy the app on the emulator, click Start button to spin up the emulator, left click on your Android project, then click Deploy. You should be able to see your app on your emulator's app menu.
Updated Instructions image
Worked for ME
Sometimes you close the android Emulator but not POWEROFF the Emulator.
this problem happens when emulator shutdown un-properly.
Restart Your EMULATOR
First start your emulator
Then restart your emulator by pressing down the power button and select restart option in your android emulator.
I enabled Hyper-V acceleration based on microsoft documentations: https://learn.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?tabs=vswin&pivots=windows#accelerating-with-hyper-v
Basically you need to turn on these two windows features from the control panel (Turn windows features on of off):
Hyper-V.
Windows hypervisor platform.
then from visual studio go to: Tools >> Android >> Android SDK manager >> Tools >> make sure that "Android emulator" version is 27.0.1 or higher, if not, you will find in the same screen a button below to update it.
I did this on windows 10 64-bit, with VS 2017 Community 15.9.5

Categories

Resources