after linux reinstalls ima use this code
sudo apt install flatpak
flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub com.google.AndroidStudio
flatpak run com.google.AndroidStudio
of course the installation broke with flatpak too