Please tell me the full process of installing Android Studio and its necessary dependencies.
Installing Java
After that
Installing Android Studio
Create a desktop fileCreate a new file
and add the lines below
Installing Android SDK (if necessary)
|
|||||||||||||||||
|
|
@A.B answer is correct and complete. I just add that alternatively you can easily install an up-to-date Android Studio using Canonical's Ubuntu Make. Installing Ubuntu Make :For Ubuntu 14.04LTS
For Ubuntu 15.10 and up Ubuntu Make is already in official repositories, run :
Note that umake version should be 16.05 to be able to download android studio, check by running
If not, use the Ubuntu 14.04 method to install it. Installing Android Studio :
There may be an error message related to license that may be corrected using an additional parameter:
Uninstall Android Studio :
|
|||||||||||||||||||||
|
|
The easiest method to install Android Studio (or any other developer tool) on Ubuntu is to use the officially recommended Ubuntu Make snap. No need to download Android Studio as zip, try to manually install it, add PPAs or fiddle with Java installation. Ubuntu Make'll automatically download the latest Android Studio, install it along with OpenJDK and all the necessary dependencies and create an app launcher entry in Dash. Step 1: Install Ubuntu MakeRun this command:
Step 2: Install Android StudioRun this command:
Once you accept the license and press enter to confirm installation path, Ubuntu Make'll download and install Android Studio. Step 3: Install Android SDKOpen the newly installed Android Studio from dash: Don't need to import anything if this is the first time you're installing it: The Setup Wizard'll guide you through installation: Select Standard install to get the latest SDK and Custom in-case you wanna change the SDK version or it's install location. From here on, it's pretty straightforward, just click next-next and you'll have the SDK downloaded and installed. Step 4: Setting PATHs (Optional)This step might be useful if you want Android SDK's developer tool commands like adb, fastboot, aapt, etc available in Terminal. Might be needed by 3rd party dev platforms like React Native, Ionic, Cordova, etc and other tools too. For setting PATHs, edit your
and then add the following lines to it:
If you changed SDK location at the end of Step 3, don't forget to change the line Tested on Ubuntu 16.04LTS and above. Would work on 14.04LTS too if you install support for snap packages first. Thanks to Didier "didrocks" Roche for snapping Ubuntu Make. 😊 |
|||||
|
|
Add the android-studio repository:
Then install:
More information can be found at https://mfonville.github.io/android-studio/ |
|||||||||
|
|
Quoted from http://ubuntuhandbook.org/index.php/2014/11/install-android-studio-ubuntu-14-04-ppa/ Android Studio depends on Java, and Oracle Java 7 or 8 is recommended
Add the Android Studio PPA
Then update package lists and install it:
Once installed, start the setup wizard from the Unity Dash or just run command
|
|||||||||||||
|
|
If you are running a 64-bit version of Ubuntu (16.04), you need to install some 32-bit libraries with the following command:
or
So that you don't have this error:
For more read this doc |
|||||
|
|
In the eve of 2018, the most voted answer is still awesome, but seems a bit outdated, and as I run into this recently, I decided to share my fresh experience here. 1. Installing JavaSince Android Studio 2.2 was released you won’t need to install any JDK yourself in most cases, since it’s brought with the IDE. 2. Installing prerequisite softwareThe following command should be run in the first place, so we can avoid some problems with the AVD tool in future:
3. Downloading and Unpackaging Android StudioYou can get Android Studio archive from here. Nothing special, just wait until loading is finished :) Google is a registered LANANA provider, so in order to comply the Linux FSH contract (part 3.13 /opt) I would like to suggest unpacking the archive to the
3.1 [Optional] Change write permission for Android Studio folderYou may find setting write permissions for all users convenient when it comes to updating Android Studio. However it’s not widely used, and seems to violate the principle of least privilege. However, just in case, if you like this way better just execute in terminal:
Alternatively you can always run Android-Studio on behalf of root and performs all updates you need without this step involved. 4. Creating Android SDK directoryI don’t embrace the idea that each user should have his own copy of Android SDK tools (build tools, source codes, system images, etc..) but Android Studio works exactly that way (it's likely because of permissions issue). Let's make it use another folder shared among all users in the system. 4.1 Create directoryMake the android-sdk folder for future use:
The last command changes permissions so every user in the system is able to edit this android-sdk folder (installing and removing packages). 4.2 Setting Environment VariablesAndroid Studio is still pointing to its own path at this moment. To make Android Studio install SDKs in shared folder, we need to specify environment variables. Currently there are two variables pointing to SDK folder: ANDROID_HOME and ANDROID_SDK_ROOT. The first is deprecated, but Android Studio won’t use ANDROID_SDK_ROOT when launching it first time even if it’s specified, so i would recommend to specify both variables. To keep things consistent and clear, let’s specify them in a separate shell for the android-studio in the profile.d folder (so you can remove them later in case of removing Android Studio):
Now you need log out the system and log in back to apply this new script. 5. Installing SDKSince we changed permissions for the SDK folder (
Now follow setup wizard instructions. Eventually you will hit Downloading Components window. It may take for a while until required components are installed. As we took care about all required libraries and software from very beginning (part 2), this process should be finished without any error. Upon first launch Android Studio installs only latest SDK platform (at the time of writing API 27). To make your toolset viable, you need at least 2-3 more older SDK platforms installed (here you can find the dashboard showing actual demand for different APIs version). In order to get them, from the Android Studio welcoming screen, click “Configure” and choose the SDK Manager option. From here you can choose whatever you need to develop Android apps. P.S. You can actually install everything from the list (even obsolete packages), but it will take ages to download. 6. Creating desktop entryCurrently Android Studio offers embedded feature in order to create desktop entry. We need to run Studio with root permissions, so it's possible to do that for all users in the system, :
P.S. -E option is needed to keep our environment variables (ANDROID_HOME/ANDROID_SDK_ROOT) available while sudoing. You will have to pass the same Setup Wizard again (it’s being performed for the root user now) and once you hit the Welcoming screen, you can find option Create Desktop Entry from “Configure” menu: In the dialog box that opens, ensure that “Create the entry for all users” checkbox is checked and click OK. Now you can close Android Studio and open from Unity Launcher! P.S. For those who are interested in where the entry was created and what is inside, you can find it in
A. [Bonus] Uninstall scriptAnd for sweets I prepared a shell script that you can use to remove your Android Studio altogether, including SDK folder, settings, emulators and cache folders from all users. It’s tailored for the steps above, but the paths are in the top of the file, so you can easily adapt it for your own configuration. Here we go:
Please be advised that the wildcard .AndroidStudio* is used in the script to remove settings of different android studio versions. If you keep something valuable in the hidden folder with the name starting with ‘.AndroidStudio’, it’s also gonna be removed. For those who not familiar with the notion of shell scripts, here are simple steps that should help:
That’s it. I’m actually quite new in Linux kind OSs, so feel free to correct me in comments as needed. |
|||||
|
|
For ubuntu 16.04, the syntax is as follows.
|
||||
|
|
|
1- Run to Terminal (Ctrl+Alt+t) and install JDK:
to check the java jdk version, type
or
2- Download Full bundled ADK from oficial site, unzip it, open it and follow the instructions in install-Linux-tar.txt. 3- Follow the ADK installation Wizard. |
|||
|
|
|
Setting up Android Studio takes just a few clicks. (You should have already downloaded Android Studio.) To install Android Studio on Linux, proceed as follows:
Required libraries for 64-bit machines: If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:
If you are running 64-bit Fedora, the command is:
and install
|
||||
|
|
|
It is not required that you use a package archive. Installation
To create a desktop entry:
Prerequisites:OpenJDK comes pre-installed, so use that. Android Studio notifies you with a small bubble dialog when an update is available for the IDE, but you can manually check for updates by clicking FYIYou can switch between JDKs, by changing the JDK path in the settings. JDKs are installed under
Here in my case So I'd use that as the JDK path in the settings. |
|||||||||
|
protected by Community♦ Oct 5 '16 at 1:10
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?










umakeand runumake android --accept-license. – Zaz Feb 8 '17 at 21:21