After successful download, you need to unpack the downloaded zip file with:
tar -zxvf android-studio-2024.1.2.13-linux.tar.gz
Then move the android-studio folder to /opt/ using:
1) sudo mv android-studio /opt/
2) sudo ln -sf /opt/android-studio/bin/studio.sh /bin/android-studio
Once you have run these commands, you can write a snippet of code to allow for the Android Studio application to be available on the application menu.
Using this command:
sudo nano /usr/share/applications/android-studio.desktop
Add the following code snippet and save:
[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio
Comment=Android Studio
Exec=bash -i "/opt/android-studio/bin/studio.sh" %f
Icon=/opt/android-studio/bin/studio.png
Categories=Development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-android-studio
Name[en_GB]=android-studio.desktop