GPU Driver issue with Android Emulator - android

I an new to Android Development and Android Studio, and I am trying to run the emulator, but unfortunately, everytime I run it I get the following error.
GPU #1
Make: 8086
Model: Intel(R) HD Graphics Family
Device ID: 0a16
Some Users have experienced emulator stability issues with this driver version.
As a result, we're selecting a compatibility renderer. Please check with your manufacturer to see if there is an
updated driver available.
Does anyone know how to fix it,
My computer's details:
Processor: Intel Core i3-4005 CPU # 1.70 GHz
Graphics: Intel HD Graphics Family
Model: Dell Inspiron 3542
RAM: 4GB
Hard Disk 1TB

I encounter this warning on my hackintosh (Lenovo X230, Intel HD 4000).
I tried to force hardware use with no success.
Did you try this one emulator from Microsoft?
https://www.visualstudio.com/vs/msft-android-emulator/
In my case, on my Windows machine (same X230), the emulator keeps stalling on the profiles screen...
I have an old macbook pro with HD3000 on which the emulator runs fine, though the graphic chip is part of from Intel's HD family.

Related

Android Emulator causing Blue Screen

Whenever I am trying to run the Android Emulator (any Nougat, Oreo, or Kitkat) laptop throws a blue screen saying STOP CODE IRQL NOT LESS OR EQUAL.
My laptop will restart in 20 minutes or so and I can do everything else on my laptop and even run the Android app on my mobile using USB Debugging.
I tried reinstalling android studio and AVD manager several times but my issue is not getting resolved.
PLEASE help!
Laptop Configuration:
Dell Inspiron 3576
Processor: Intel(R) Core(TM) i5-8250U CPU # 1.60GHz 1.80 GHz
RAM: 8.00 GB (7.87 GB usable)
System Type: 64-bit operating system, x64-based processor
Edition: Windows 10 Home Single Language
Version: 20H2 (as of 01st April, 2021)
I had the same issue with NoxPlayer which is another android emulator, the stopcode was different but it was fixed when I created a new boot entry with Hyper-V Disabled.
Check this out:
https://blog.nicholasrogoff.com/2013/12/27/create-a-no-hyper-v-boot-option/
"Don't forget to change Windows8 to windows10 in your commands, That's just a name but it has to be meaningful :D"

Android Emulator very slow on Ubuntu 20.04

My Android emulator runs very slow on my Ubuntu machine. I need it to run faster, because some apps are slowed down so much, that they change their behaviour (they use the camera).
System specs:
-x86_64
-Intel(R) Core(TM) i7-5600U CPU # 2.60 GHz
-20GB Ram
-512Gb HDD
I use Ubuntu 20.04 and Android Studio 4.1.1 (fresh installation).
I use this AVD: Pixel2 1080 x 1920: 420dpi API 28 Android 9.0 (Google X86_ARM) CPU/ABI: x86
In the extended menu I chose Graphics: Hardware - GLES 2.0. I also disabled GPS, audioInput and audioOutput with no performance improvements.
I did not try this, because selecting Hardware - GLES 2.0 worked for me and the avd started normally (but still very slow).
Other system images are equally slow though.
I tried:
sudo modprobe msr
sudo rdmsr 0x3A
and it returns 5, so VT-X is enabled
Is the hardware the bottleneck, or is something configured wrongly? Maybe it is the HDD that slows the emulator down? I tried running the emulator on Windows and it's insanely fast. The windows machine is stronger though.
Update 11.12.2020:
I also verified my KVM installation using this command:
./emulator -avd Pixel2Api28Arm -accel-check
It returned this:
28Arm -accel-check
accel:
0
KVM (version 12) is installed and usable
accel
So this does not seem to be an issue.
I was having the same problem (KVM working, but slow x64 emulator on x64 host), and found a solution here, which is to disable automatic snapshot creation.
Run your emulator, and click on the three dots (...) to open the settings:
In the settings, click "Snapshots":
Switch to the "Settings" section on top:
Set "Auto-save current state to Quickboot" to No:
It'll ask you to restart the emulator, click Yes:

how to run android studio emulator on nVidia GT 365M

I created an emulator via Android studio AVD.
when i run the emulator, it show a message saying
your gpu driver information :
make:8086
Model:Intel (R) HD graphics 4000
device id :0166
Some users have experienced emulator stability issues with this driver version. As a result, were selecting a compatibility renderer. Please check with your manufacturer to see if there is an updated driver available.
https://i.ibb.co/60pY4pm/emulator2.jpg
I Added Android Studio to my nvidia card to run automatically on GPU driver whenever i open android studio
I Also added emulator executive files to nvidia card control
So it supposed that the emulator run on My nividia GT 365M not intel 4000
http://i63.tinypic.com/5bd7vk.jpg
But same message appear and my emulator is extremely slow
it is on that stage after 15 min of running
http://i66.tinypic.com/2zfv2hz.jpg
I tried every single option in emulator setting
http://i68.tinypic.com/71jpm0.jpg
***I tried to run the emulator by command line
emulator -avd pixel -gpu on
But the same problem
**** I enabled Intel HAXM (intel hardware acceleratio),,,nothing changed
********I ensured that my nividia card Driver is up-to-date
My Laptop Specs
CPU Intel Core i5 (3rd Gen) 3210M / 2.5 GHz
*Number of Cores Dual-Core
*Cache 3 MB
*Ram: 6 GB
*Graphics Processor Intel HD Graphics 4000
*Graphic card : nVidia GT365M
What is the solution ?
problem solved by installing intel 4000 graphic card update
https://downloadcenter.intel.com/product/81499/Intel-HD-Graphics-4000
but I still think my emulator runs on Intel card not GPU nividia card
any solutions for that ?

Android emulator running extremely slow on Ubuntu 17.04

I know this is a duplicate but i am unable to comment on this thread in order to find out a solution. I have done exactly as the accepted answer but my problem isn't solved.
I am running Ubuntu 17.04 on a laptop with Intel Core i7 4th Gen Processor, 8GB RAM, 256GB SSD and Dual Graphics.
I have installed nVidia Prime drivers and switched to Intel graphics card because it performs better than the nVidia.
I have created a Virtual Device with the following settings:
Device: Google Pixel with API 26
Graphics: Automatic(i have tried both software and hardware btw).
RAM: 4096MB
VM Heap: 1024MB
Internal Storage: 4096MB
First, reduce the RAM of the emulator image to something more reasonable (1024MB, perhaps 1536MB). Do not allocate half of your development machine's RAM to an emulator.
Second, confirm that you are using an x86 emulator image (or perhaps x86-64). This shows up in the CPU column of the AVD Manager.

How well does the Android Phone Emulator reflect the performance?

I've been playing around with OpenGL ES development on Android. OpenGL ES applications seem to run slowly in the Emulator on my development machine. Does this reflect likely performance of actual hardware? I'm concerned about spending too much time developing an application if the graphics performance is going to be sluggish.
The emulator is super slow on my Mobile Intel Pentium M 725, 1600 MHz.
I'm assuming the emulator isn't representative of real world performance.
Emulator is soo slow ,that in some cases an openGL application wouldn't even start when using it.
While the actual hardware of android can even be so strong,that you can even play GTA on it.
Configuring VM Acceleration on Windows
Virtual machine acceleration for Windows requires the installation of the Intel Hardware Accelerated Execution Manager (Intel HAXM). The software requires an Intel CPU with Virtualization Technology (VT) support and one of the following operating systems:
Windows 7 (32/64-bit)
Windows Vista (32/64-bit)
Windows XP (32-bit only)
To install the virtualization driver:
Start the Android SDK Manager, select Extras and then select Intel Hardware Accelerated Execution Manager.
After the download completes, execute <sdk>/extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM.exe
Follow the on-screen instructions to complete installation.
After installation completes, confirm that the virtualization driver is operating correctly by opening a command prompt window and running the following command:
sc query intelhaxm
You should see a status message including the following information:
SERVICE_NAME: intelhaxm
...
STATE : 4 RUNNING
...
To run an x86-based emulator with VM acceleration:
If you are running the emulator from the command line, just specify an x86-based AVD:
emulator -avd <avd_name>
After the new update the emulators have become much more reliable but still can't be taken as the way to check the performance of your application. Till now testing the application of real devices are more reliable then emulators.
With the new emulator of Android Studio 2.0, if you have good computer it runs quite smoothly, at leat for my application!
Check the features!

Categories

Resources