I'm trying to run the emulator in Android Studio. When I run the avd for Nexus 5 API 8, the phone image appears, but the screen is blank. Some research uncovered that the nexus screen may be too dense to display on my 1368x768 laptop screen, so I tried creating smaller density avds such as 4" wvga nexus s and 3.4" wvga. When I run these, I get the error "failed to create drawable" and no phone image pops up. When I connect my LG phone via usb in developer mode, the app works fine on the phone. Why can't I get the emulator to display the app output?
I had a similar problem and the solution was to disable hardware rendering.
Steps:
Open Tools\Android\AVD Manager
Edit the Virtual Device (Click on the pencil)
Change Emulated Performance - Graphics to 'Software-GLES 2.0'
See also this answer for other options.
Related
I used Android Studio before and setup buildin device (Pixel 3), I remove "Enable device frame" option for saving screen size.
All works fine.
Today I tried to setup a device with a new screen resolution (iPhone 11 Pro like - 1125x2436). I delete old Pixel 3 and created a new device, remove "Enable device frame" option, start. After progress bar appear the end, the emulator is closed and error appear:
"The emulator process for AVD devicename was killed."
I trying some google, updated Studio, rebooted PC (Linux), created new devices, but nothing helped.
I tried chose "Enable device frame" option and pick a skin. After that emulator successfully started (!).
Can anybody explain why emulator not starting without skin? Can it be fixed somehow?
Just fixed the issue.
For some strange reasons emulator launch without device frames after I changed screen resolution from 1125x2436 to 1126x2436.
When I open the android emulator, it stays on a black screen.
The app I'm testing is small and basic.
I have the arm* type downloaded, and I set it to 300 RAM, but still nothing.
Emulator have many issue if you want good & fast emulator then uses genymotion Download from link https://www.genymotion.com/#!/. you will get different type of device and fast devices then emulator.
this may be a stupid question, but I've been doing Android Development for quite some time but just installed the new version of the SDK and ADT Eclipse plugin.
I've noticed that when I create a new AVD I can choose a specific device, I.e. Nexus 7 or Nexus Phone. I've selected the Galaxy Nexus but the emulator doesn't fit on the screen so I can't see the bottom of the device. At the moment I'm working on my Desktop which has a 21 inch monitor (1600 x 900) not the most highest spec in the world but I want to be able to fit the device on the screen. I also have a secondary screen which I usually keep the emulator on so I can see the code and the emulator, handy for debugging purposes, but this screen is much smaller and only has a resolution of 1280 x 800. At the moment, it would be impossible to press on the back and home buttons, and if I do development on my laptop, which is obviously a much smaller screen, probably wouldn't be able to see most of the device, as the AVD doesn't seem to scale to fit the screen.
Is there a way that this can be done. Below is a screen shot of how the device looks on my screen.
Right click your project -> Run Configuration -> select target -> in additional emulator command line option text box, type '-scale 0.75' and run your app
For those using Ionic CLI or other solutions, the following worked for me:
ionic run android -scale=0.75
In Android Studio, the option is set in the AVD Manager, under "Startup size and orientation".
In my PC, I can create any medium density emulator(e.g. 1280x768) and run it properly. But when I am trying to run any emulator of high density or extra high density emulator, it is showing black screen only, it is not loading anything and I cannot run any app there, if I try to run any app, it is giving "Error type 2". What is problem? Is it any hardware limitation?
I too face this type of problem earlier. But I have rectified this by using VirtualBox.
Install virtual box
check this for how to use virtual box as android emulator
I installed different add-on like Samsung Galaxy, Motorola Xoom, Xoom2, Xoom2Me etc and create AVD using them, it solved my problem.
I a few days i will get a new Samsumg Galaxy SII and now i want to try developing apps for Android, so i installed eclipse and the ADT however the emulator seems to be painfully slow so i found a workaround: installing the generic x86 version in Oracle VirtualBox and connect it via adb connect <ip> to eclipse and it works extremely well.
However i am running in a "high res" version or something like that and i would like to scale it down to some more common resolution to imitate the resolution of smartphones like my Galaxy. Is anyone familiar with this customization?
I'm not sure how one can control the resolution at install. However, you if you run it live from the disk, you can highlight VESA mode. Then,
If you want to use higher resolution, you can edit the boot option by
pressing TAB, change vga=788 (800x600) to vga=791 (1024x768) or
vga=794 (1280x1024), and press Enter. You can also use vga=ask to see
all available modes. But please note Android will only work under
16-bit mode.
http://www.android-x86.org/documents/virtualboxhowto
For 800x480, you'll want video mode 375.
I've tested on 2.2 and 2.3: "android-x86-2.3-RC1-asus_laptop.iso" and http://code.google.com/p/android-x86/downloads/detail?name=android-x86-2.2-generic.iso&can=2&q= and i can get that video mode to work fine. After entering vga=ask, hit enter to see all the modes, then enter 375.