How to install Android Studio on Linux distributions?

Asked

Viewed 2,968 times

1

I am new as linux user, and installed the jdk 7 using this procedure below:

http://www.edivaldobrito.com.br/como-instalar-o-oracle-java/

Then I used this procedure to install android as shown below:

http://www.edivaldobrito.com.br/como-instalar-o-android-studio-ubuntu-14-04/

Then I went to the console terminal and typed studio and nothing happened.

I checked if the java is installing with the command java-version

Can someone help me install the Android Studio, because I’m having a hard time.

  • Installing JDK 7 does not help anything in Android Studio, to compile Android applications you need to have JDK 6. Do not need to install a third party repository to install Android Studio, just download the binaries from the Android site: https://developer.android.com/sdk/installing/studio.html.

  • 2

    @Wakim I use jdk7 (openjdk, not oracle) and here it works perfectly, I do not think it is necessary JDK6, but of course for compatibility reasons maybe it would be better to compile with jdk6.

  • I used this tutorial as a reference for installing Android Studio on Ubuntu. See: https://www.youtube.com/watch?v=qfinKxwYYZs

  • Already tried to follow the tutorial in the file: Install-Linux-tar.txt that comes inside the briefcase android-studio ?

  • linux and only the name of the kernel which and its operating system more specifically and which architecture 32 or 64 ...

  • Remembering that even with the [tag:android-studio], you will need the Android NDK if you want to build something like Openssl for example. I prefer to use android studio outside the linux, leaving it only in the compile function.

Show 1 more comment

3 answers

4


Wladyband this is a third party repository, not from Google, which may or may not be being updated. Ideally download the newest version from the link https://developer.android.com/sdk/installing/studio.html, unzip and access just bin there the studio.sh file that you should call by terminal as follows:

  ./android-studio/bin/studio.sh

from there it will run android studio.

1

Before installing it is necessary to have the JDK.

To install the JDK:

  1. download the app: https://developer.android.com/studio/index.html
  2. save it to your download folder: ~/Downloads/ and extract, will stay like this: ~/Downloads/android-studio/
  3. now open the Lin terminal, and install the JDK, type: sudo apt-get install openjdk-9-jdk
  4. installs the dependencies: sudo apt-get intsall lib32z1 lib32ncruses5 lib32bz2-1.0 lib32stdc++6
  5. Then navigate to the folder where you extracted Android Studio: cd ~/Downloads/android-studio/ and press "Enter"
  6. give permission to run to the shell file: sudo chmod a+x ./bin/studio.sh.
  7. run the file, type: ./bin/studio.sh, after it is finished, it will open a screen to proceed.
  8. Click "next", then "Finish".

Here’s a step-by-step video

0

After installing Java, if you are dist Debian, install the repositories and Android Studio with the commands below in the terminal:

sudo add-apt-repository ppa:paolorotolo/android-studio  
sudo apt-get update  
sudo apt-get install android-studio

Browser other questions tagged

You are not signed in. Login or sign up in order to post.