'Black Screen with Android Emulator
I am a newbie to android development and am running Ubuntu Linux with an AMD cpu. I installed Android Studio, JDK, SDK, etc, and have been trying to run the emulator. However, whenever I try launching the emulator, it stays a black screen. The message I repeatedly get in terminal is
WARN - run.EmulatorConnectionListener - Emulator not ready yet, dev.bootcomplete = null
I have tried waiting for a while, I have tried updating it, I have tried different APIs, I have tried setting emulated performance to software, and everything else I could find online. Help would be greatly appreciated!
Specs: Ubuntu 16.04 LTS Android Studio 2.3.3 Radeon R9 270x 4gb AMD FX4100 32g ram SVM is enabled in BIOS
Solution 1:[1]
This happened to me recently (emulator with black screen, with all AVDs, even those which worked previously), maybe after some system or Android SDK updates.
How I fixed it:
- delete whole .android directory (is in your home directory) - backup this directory before deleting (it contains your AVDs, your debug signing key or other things you might wish to return to later) - yes, this was the thing that really helped
- create new AVD - you have to do this after deleting that .android directory (it did not work if I copied backed up AVD back there)
For reference, here is AVD configuration which works for me now (created directly using Android SDK, not using the wizard in Android Studio):
- Device: Nexus One (3.7", 480 x 800: hdpi)
- Target: Android 7.0 - API Level 24
- CPU/ABI: Intel Atom (x86_64)
- Keyboard: [x] Hardware keyboard present
- Skin: Skin with dynamic hardware controls
- Front Camera: None
- Back Camera: None
- RAM: 1024
- VM Heap: 64
- Internal Storage: 200 MiB
- SD Card: (empty)
- [ ] Snapshot (unchecked)
- [ ] Use Host GPU (unchecked)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Milan Laslop |
