DEV Community

Discussion on: Setting Up Android Tooling

Collapse
 
sduduzog profile image
Sdu

Lovely post. I think you should also mention the installation part for Linux. As its slightly different

Collapse
 
adammc331 profile image
Adam McNeilly

Thanks Beautus! Do you know where the setup is different/any way you have screenshots? I would love to update the post accordingly, but I don't have a Linux machine to verify.

Collapse
 
sduduzog profile image
Sdu • Edited

Ok Ok after downloading android-studio-ide-xxx-linux.zip (xxx being version numbers idk)

  • Extract the archive in any way (terminal or by right click options)

  • The resulting folder will be android-studio (if right clicked, its gonna be inside android-studio-ide-xxx` )

  • Move that folder to any preferred location

    • Either to the (/usr/local) directory or /opt shared directory (I prefer /opt)
    • On the terminal sudo mv ~/Downloads/android-studio /opt

For x64bit machines

Install 32 bit libraries by
sudo apt-get install libc6:i386 libncurses5:i386
libstdc++6:i386 lib32z1 libbz2-1.0:i386

  • To install:
    • cd /opt/android-studio/bin and then execute ./studio.sh
    • This launches the usual setup screen

  • Last step, when the setup wizard is done, Go to Configure > Create Desktop Entry to be able to launch android studio like other apps instead of the terminal.

I'm sorry I couldn't get screenshots but I got their official video

Thread Thread
 
adammc331 profile image
Adam McNeilly

Thank you so much! I've updated by adding a sub section to the larger download section.

I didn't quite follow your second bullet about moving the folder and running apt-get, can you clarify what that means?

Thread Thread
 
sduduzog profile image
Sdu

I've edited the comment. I think my markdown was a bit off so some things weren't clear enough, it even cut some text without wrapping it.

mv <file or folder to move> <destination directory> a command for moving files
and sudo means you wanna execute a command with root privileges so it prompts for a password before it executes.

android studio can be run from anywhere really but its neater if its put in a directory that wont be disturbed by users. and the mentioned locations are perfect for that.

apt-get or apt is a package tool for linux ubuntu (and some other linux distros). The command is for installing all the libraries listed after the keyword install separated by spaces with this package manager. If you are running a 64-bit version of Ubuntu, you need to install these.

I hope this is helpful really, do ask if you're still need more clarification