Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Android Stuido in Ubuntu #1226

Open
anitsh opened this issue Dec 30, 2024 · 0 comments
Open

Install Android Stuido in Ubuntu #1226

anitsh opened this issue Dec 30, 2024 · 0 comments

Comments

@anitsh
Copy link
Owner

anitsh commented Dec 30, 2024

  1. 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.

  2. 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

  1. Create a Desktop Entry
    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).

  1. Set Permissions
    Ensure all users can access Android Studio:
    sudo chmod -R a+rx /opt/android-studio

  2. Verify the Installation
    Launch from the terminal:
    android-studio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant