Android Emulator shows a Black Screen on Ubuntu Android Studio AVD

712 Views Asked by At

I just installed Android Studio and created my first few Virtual Devices based on

  • Nexus 6 API 27
  • Pixel 3 API 27
  • Pixel 4a API 30
  • Pixel 5 API 30
  • Pixel 5 API 28
  • Pixel 5 API 27
  • Pixel 5 API 26
  • Pixel 5 API 25

However, starting the virtual device only shows a black window, as shown here:

enter image description here

Some time later, nothing changes and this window appear showing a timed out message:

Timed out after 300seconds waiting for emulator to come online.

enter image description here

Tried the following but does not help:

  1. Switching the virtual Device's Graphics from Automatic to Software - GLES 2.0

  2. Adding this line to the bottom ~/.bashrc`

    export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1
    
  3. Fixed some client error by creating this symlink for adb

    adb kill-server
    #sudo cp ~/Android/Sdk/platform-tools/adb /usr/bin/adb
    sudo ln -s ~/Android/Sdk/platform-tools/adb /usr/bin/adb
    sudo chmod +x /usr/bin/adb
    adb start-server
    

Is there a fix for this? Thanks!


My system is running:

  • Ubuntu 20.04
  • Android Studio Arctic Fox 2020.3.1 Patch 4
  • AMD Ryzen 5950X, 128 GB DDR, RTX 2070S
  • Nvidia drivers 460.91.03
  • adb Android Debug Bridge version 1.0.41 Version 31.0.3-7562133
1

There are 1 best solutions below

1
pdbq tashakori On

You need to use another prescription of emulator. Or sometimes you need to change the version of android for emulator