Android emulator shows nothing but blank screen

后端 未结 16 1928
既然无缘
既然无缘 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:20

    I just started with android development recently and I had the problem with emulator showing black screen even when I was using software GPU acceleration. On executing the following command in tools folder in Sdk folder of Android

     $./emulator -accel-check
    

    The output which is given below showed that KVM was installed correctly and was usable.

        accel: 
        0
        KVM (version 12) is installed and usable.
        accel
    

    So I installed the following packages

    $ sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils ia32-libs-multiarch
    

    As I use Manjaro I didn't find all the packages in software repo. I was able to find only the following packages

    1. qemu
    2. libvirt
    3. bridge-utils

    Installing these helped me run AVD in both software and hardware GPU accleration.

    Source: - https://developer.android.com/studio/run/emulator-acceleration.html

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

    The AVD is just booting up. Wait a bit and you'll see a flashing android and after that it will show you the lock screen.

    use the intel AVD if you want it to be a bit faster.

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

    I had the same problem, running on a Mac Book Pro bought in 2011.

    I solved it by selecting "Use Host GPU" as the emulation option at the bottom of the "Create..." screen.

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

    Tried all of the above. What eventually worked, was a combination of using software based graphics rendering, in combination of 'older' device images (nexus 7 works, nexus 10 doesn't). Go figure. And yeah, it's very slow.

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

    Sounds like there are many possible solutions so here's how I solved my black emulator screen after something (Gradle?) updated in Android Studio:

    Change the AVD's Graphics setting to "Software - GLES 2.0"

    Link to my full answer of a related question with a screenshot: https://stackoverflow.com/a/48287265/6343114

    Update: so far, this isn't working on Play Store-enabled devices, because the Graphics setting can't be changed

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

    Android emulator response time is very slow so you can try some alternative like https://cloud.genymotion.com/page/launchpad/download/

    or

    http://www.bluestacks.com/

    both are very good option for testing application on development phase.

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