Using dedicated Graphics with Windows Phone Emulator - graphics

I have 2 cards on my laptop: Intel HD 4000 and GeForce 630. I would like to set that Windows Phone Emulator will use only the GeForce not Intel. The manager has blocked preferences(see screen)
http://postimage.org/image/l1l3qpz31/
Using Intel graphics generates errors in the emulator.

I have exactly the same problem, so here's what I did:
Found a "Windows Phone Emulator" shortcut in the start menu.
Right-clicked on it and selected "Run with graphics processor" -> "High-performance NVIDIA...".
After emulator with an image loaded up, I went to VS and selected to run my application on the emulator.

Related

VT-x enabled but Studio cant use it

Good afternoon
I can't start virtual device I created because "VT-x or SVM not supported". Lets say VT-x is required for Oracle Virtualbox and other emulators, I have VT-x enabled and I use many emulators without problems.
"Troubleshoot" window of Studio provides an option to use AVD based on ARM system image (10x slower), but when I create new device, the "Next" / "Finish" buttons are disabled if I select any image except of x86 image.
I have VT-x enabled in BIOS. All tutorials how to fix similar bugs are related to enable of this option. Both type of Graphics in the VM options (hardware or Software) tested.
System: Windows 7 x64, AMD 6 core CPU, few years ago I was running Android Studio and AVDs at the same hardware under Windows 2003 (Probably, Studio 2.0) and it worked.
Any ideas?

Android Studio 3.3.1 Emulator bug

I'm a new Android Studio user, but I've already done something in the last few days.
I have only a problem with the emulator. I tried to run my code with a normal Virtual Device, but every time I always got the same error:
Emulator: emulator: ERROR: x86 emulation currently requires hardware acceleration!
Emulator: Process finished with exit code 1
I tried to find a solution in the internet, and I found that the problem was my computer (it is an AMD) and I had to download the "armeabi" version when I created a new virtual device.
It worked (I have no more errors), but my emulator is always black and I cannot see anything. I was forced to use Debug USB on my personal phone, to plug in and use it (and it works) but I'd like to solve the problem with the Android Studio emulator. My Android Studio version is 3.3.1, the latest.
Obviously when I have a preview clicking on the file "activity_main.xml" I can see the right output.
Normally I use Nexus 5 and I've tried with Marshmallow and Nougat.
Increase your VM Heap & try it again.
Tools -> Android -> AVD Manager.
Select a virtual device and click on its pencil icon (edit)
Click on Show Advanced Settings.
Under "Memory and Storage" change "VM Heap"
If above is not helpful, Please Check "Wipe user data" in the Launch Option
Go to Android Virtual Device Manager->Select your device->Start->Check "Wipe user data"->Launch
make sure that Intel x86 Emulator Accelerator is active

How to use real emulator

I am using lenovo k3 note smartphone and running android studio on Windows 7. I want my phone to run my app. I have enabled usb debugging option. But I couldn't find my device in emulator window.
In device manager of win7 when I am trying to install the driver it says:
Windows was unable to install your MTP.
Windows couldn't find driver software for your device.
Any suggestions?

Run Android Emulator on Windows 10 with XenDesktop on VM on ESXiHost?

The standard computer lab setup at the school where I work is for the students to connect to a Windows 10 image running XenDesktop on an ESXi host via Citrix Receiver.
We'd like to add Android development to our virtual computer lab, but none of the emulators I've tested will run. Here's what I've tried and the results:
Android ADB that come with Android Studio: Not compatible with Hyper-V, so Hyper-V turned off and ADB hangs with message "Cannot get ADB Version" or similar
Microsoft Visual Studio Android Emulator: It hung when trying to start AVD with message "Starting OS" on AVD. After an hour, I tried to close it and AVD message changed to "Closing operating system" and hung there. I finally closed it with Task Manager.
GenYmotion: It hung when trying to start the AVD. The AVD was an empty window frame.
Has anyone attempted something like this?
The solution turned out to be relatively simple. Use the vSphere 6 Web Client to edit the VM settings, and on the CPU settings, enable "Expose Hardware assisted virtualization to guest OS" (the standalone vSphere client does not have this option). Then restart the VM, install HAXM on the VM, restart the guest OS, and then Android studio and emulator will allow x86 AVDs as usual.

Android Studio emulator not working correctly

My Android Studio emulator is running in emulation mode instead of HAXM
even though RAM size in AVD and HAXM is same (1 GB). Here is a screenshot showing my situation:
Can someone explain how to make sure my emulator is running in the correct/best mode?
HAXM stands for Hardware Accelerated eXecution Manager. It's a technology that enables your Android Virtual Device (AVD), an emulator, to run faster under Windows. It does not change the fact that the AVD is an emulator (vs. a virtual machine like Genymotion or Android-x86).
From the log messages in your image attachment, it looks like you are all set. I see "HAXM is working..." there and I also see the AVD all booted up and good to go.

Resources