简体   繁体   中英

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

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM