Android emulator shows nothing but blank screen

后端 未结 16 1930
既然无缘
既然无缘 2021-01-01 18:15

I am a complete nOOb to Android programming and trying my hands at it for the first time by going through the tutorials. The problem is that I have created multiple emulator

相关标签:
16条回答
  • 2021-01-01 18:26

    I managed to fix this problem by manually re-installing HAXM. I think Android Studio screwed the install up. You can run the installer(.DMG) from this directory inside your Android SDK directory:

    /extras/intel/Hardware_Accelerated_Execution_Manager/
    
    0 讨论(0)
  • 2021-01-01 18:28

    I had the Problem with black screen plus audio fail messages with a newly installed Android Studio 3.4.1 on a fairly new amd machine. so i installed arm based virtual devices, used the Nexus 4 API 15 on targed 4.0.3 (Google API) as recommended for a first start.

    I changed windows settings -> privacy -> microphone-> let other apps use it to fix the failing audio messages.

    for the black screen all the above suggestions didnt work for me, until i changed the settings on extended controls once the black screened virtual device comes up:

    went to settings -> advanced and changed both "OpenGL ES renderer" and "OpenGL ES API level" to "Desktop native OpenGL" and "Compatibility" respectively.

    a word of caution, the devices seem to be very fragile and get corrupted when changing stuff back and forth in avd manager, especially when changing system image.

    0 讨论(0)
  • 2021-01-01 18:30

    I had the same problem on Macbook pro mid 2012 model with 4 GB RAM and intel core i5 processor, deleted the AVD and created new AVD.
    While creating new AVD in the advanced options -->hardware configurations set memory as 512 MB and selected Use Host GPU option.
    On launching AVD received the error with some package, was prompted for auto update of this package and worked for me with charm after that.

    0 讨论(0)
  • 2021-01-01 18:32

    I had the same problem in win10 64bit, too. After a lot of searching, I found this solution.(If you're using an intel system(CPU, GPU, Motherboard, etc.)) Hope it work for you, too.

    step 1: Make sure virtualization is enabled on your device:

    Reboot your computer and then press F2 for BIOS setup. You should find Virtualization tag and make sure it is marked as enabled. If it's not enabled, no virtual devices can run on your device.

    step 2: Install/Update Intel Hardware Accelerated Execution Manager(Intel HAXM) on your device:

    This software should be installed or updated for any AVDs to run. You can download the latest version by googling "HAXM". After download, install .exe file and reboot your computer.

    0 讨论(0)
  • 2021-01-01 18:32

    If you got it to run the first time after installation but couldn't get it to run again it might be because you have virtualization disabled. Go into your BIOS and enable it. This is also on the FAQS of andyroid on installation.

    0 讨论(0)
  • 2021-01-01 18:38

    Mac Users: Unfortunately, if you have an older Mac (late 2009 for example) and are using Yosemite, you cannot use HAXM for 64 bit architecture. According to the release notes on HAXM:

    HAXM driver does not support emulating a 64 bit system image on Intel systems based on Core microarchitecture (Core, Core2 Duo etc.). All systems based on Nehalem and beyond are supported. (Corei3, Core i5 and Core i7 machines).

    I spent a day trying to figure this problem out when I came upon this quote. The only thing that works is to use the non-x86 version of the latest OS (e.g. Lollipop Android 5.0.1 armeabi-v7a) in your AVD

    0 讨论(0)
提交回复
热议问题