I was having this problem while trying to run the Android emulator on my machine. To fix it you can use this command for Fedora:

1
sudo yum install mesa-libGL-devel

or this command for Ubuntu:

1
sudo apt-get install libgl1-mesa-dev
[ android  linux  mobile  ]
Android development with Docker android mobile
Android development with Docker android mobile
Adding a drawer to your Android app android mobile
Create a navigation menu for your Android app mobile android
Using the Gradle wrapper on your Android project android mobile