I need a little help, the android studio emulator is presenting me with a particular error, when launching a avd nexus_5
with API 21
, this appears:
and then the emulator starts but on the black screen ... what could it be?
I think your mistake is coming here
emulator window was out of view and was recentered (although it has been recentered)
You can try the following:
Go to the directory where your virtual device is created, the path can be something like /suUsuario/.android/avd/Nexus_S_API_21.avd
. If you can not see the .android
directory make sure you can see the hidden files Ctrl + h . Once inside, open the file with the name: emulator-user.ini
and modify the lines:
so that they are as follows:
Notes for Windows: it may be something like C: \ Users \ yourUser
If the above does not work for you, you can deal with the following: Select the window where the emulator is displayed, then press Alt + Space then the M key can now be moved with the keyboard arrows or with the mouse.
Moved from my comment:
You could look if you have enough RAM to launch the emulator ect, you could also try enabling or disabling "Use Host GPU" in your emulator.
You can deal with the following command, just as you get some output that clarifies something, for example if you run out of space to run the ect emulator. On the other hand try to create a device image as simple as possible to rule out lack of resources on the host (and try different system image).
/home/code/Android/Sdk/tools/emulator -avd Nexus_S_API_21 -netspeed full -netdelay none -debug-init -logcat '*:v'
You can also try to use AS 2.0 preview to tell me Webserveis because from my point of view the emulation without the use of KVM, has improved with respect to other versions, it still helps you in your problem.
Once I had an error similar to this one, I solved it by installing the INTEL tool HAXM is a hardware visualization engine that helps more than anything to increase the speed of the Android emulator.
Fortunately, there is a version for Linux.