Skip to content

RonakDhingani/android-studio-update-guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 

Repository files navigation

πŸ“Œ Update Android Studio from Old Version to New Version (Linux) πŸš€

If you want to upgrade Android Studio to the latest version on Linux, follow these step-by-step instructions.


πŸ› οΈ Step 1: Remove the Old Android Studio (Optional but Recommended)

If you installed Android Studio manually (not via Snap or APT), remove it first to avoid conflicts. Open a terminal and run:

rm -rf ~/android-studio
rm -rf ~/.local/share/Google/AndroidStudio*
rm -rf ~/.config/Google/AndroidStudio*
rm -rf ~/.cache/Google/AndroidStudio*

If you installed via Snap, remove it with:

sudo snap remove android-studio

πŸ“¦ Step 2: Download & Extract the New Version

1️⃣ Open the terminal and go to your Downloads folder:

cd ~/Downloads

2️⃣ Extract the tar.gz file:

tar -xvf android-studio-<new-version>-linux.tar.gz

For Example : tar -xvf android-studio-2024.2.2.13-linux.tar.gz

3️⃣ Move the extracted folder to /opt/ (recommended for global access):

sudo mv android-studio /opt/

πŸ”§ Step 3: Set Up Android Studio

Run the installer using the following command:

/opt/android-studio/bin/studio.sh

When prompted, select "Do not import settings" if asked.

Now, follow the setup wizard and update SDK & plugins as required.


πŸ–₯️ Step 4: Create a Desktop Shortcut (Optional)

To add Android Studio to your application menu:

1️⃣ Open a terminal and run:

nano ~/.local/share/applications/android-studio.desktop

2️⃣ 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.png
Terminal=false
Categories=Development;IDE;

3️⃣ Save the file (Ctrl + X, then Y, then Enter).

4️⃣ Make the shortcut executable:

chmod +x ~/.local/share/applications/android-studio.desktop

βœ… Step 5: Verify Installation

Run Android Studio using:

/opt/android-studio/bin/studio.sh

OR

Search for "Android Studio" in your application menu.


πŸ”§ Troubleshooting

If the app doesn't open, install missing dependencies:

sudo apt update && sudo apt install libxcb-xinerama0

Now your Android Studio is successfully updated! πŸŽ‰πŸš€


πŸ’‘ Enjoy coding with the latest Android Studio! πŸ–₯️✨

About

A step-by-step guide to updating Android Studio from Old to New update on Linux. Includes installation, removal, and desktop shortcut setup.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors