'Android Emulator shows a Black Screen on Ubuntu Android Studio AVD
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:
Some time later, nothing changes and this window appear showing a timed out message:
Timed out after 300seconds waiting for emulator to come online.
Tried the following but does not help:
Switching the virtual Device's
Graphics
fromAutomatic
toSoftware - GLES 2.0
Adding this line to the bottom ~/.bashrc`
export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1
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
Solution 1:[1]
You need to use another prescription of emulator. Or sometimes you need to change the version of android for emulator
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 |