You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extract the File
Assume the file android-studio-2024.2.1.12-linux.tar.gz is in your ~/Downloads directory. Run:
sudo mkdir -p /opt/android-studio
sudo tar -xvf ~/Downloads/android-studio-2024.2.1.12-linux.tar.gz -C /opt/android-studio --strip-components=1
This extracts the contents to /opt/android-studio, making it accessible for all users.
Set Up a Symbolic Link
Create a symbolic link to the studio.sh script so all users can launch Android Studio from the terminal:
Add the following content:
[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio
Exec=/opt/android-studio/bin/studio.sh
Icon=/opt/android-studio/bin/studio.svg
Categories=Development;IDE;
Terminal=false
Save the file and exit (Ctrl+O, Enter, Ctrl+X).
Set Permissions
Ensure all users can access Android Studio:
sudo chmod -R a+rx /opt/android-studio
Verify the Installation
Launch from the terminal:
android-studio
The text was updated successfully, but these errors were encountered:
Extract the File
Assume the file android-studio-2024.2.1.12-linux.tar.gz is in your ~/Downloads directory. Run:
sudo mkdir -p /opt/android-studio
sudo tar -xvf ~/Downloads/android-studio-2024.2.1.12-linux.tar.gz -C /opt/android-studio --strip-components=1
This extracts the contents to /opt/android-studio, making it accessible for all users.
Set Up a Symbolic Link
Create a symbolic link to the studio.sh script so all users can launch Android Studio from the terminal:
sudo ln -s /opt/android-studio/bin/studio.sh /usr/local/bin/android-studio
To make Android Studio available in the application menu, create a .desktop file:
sudo nano /usr/share/applications/android-studio.desktop
Add the following content:
[Desktop Entry]
Version=1.0
Type=Application
Name=Android Studio
Exec=/opt/android-studio/bin/studio.sh
Icon=/opt/android-studio/bin/studio.svg
Categories=Development;IDE;
Terminal=false
Save the file and exit (Ctrl+O, Enter, Ctrl+X).
Set Permissions
Ensure all users can access Android Studio:
sudo chmod -R a+rx /opt/android-studio
Verify the Installation
Launch from the terminal:
android-studio
The text was updated successfully, but these errors were encountered: