'Bootstrap error while starting Android Studio

I've been following this tutorial here about how to install Android Studio to run Flutter, I extracted the .tar file and when I try to execute the Android studio I get the following error (I'm using WSL2):

~/Dev/android-studio/bin » ./studio.sh                                                          

!bootstrap.error.title.startup.error!
!bootstrap.error.message.no.graphics.environment!

Whats wrong?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source