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
ran into problems. now i cant install flatpak because android studio broke during installation and it won’t let me delete it or reinstall it.