zip file you downloaded to an appropriate location for your applications, such as within /usr/local/ for your user profile, or /opt/ for shared users.
To install Android Studio on Linux, proceed as follows: Unpack the. If the JDK is not available or the version is lower than 1.8, download the Java SE Development Kit 8. While the Android Studio download completes, verify which version of the JDK you have: open a command line and type javac -version. Update-alternatives -install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.Setting up Android Studio takes just a few clicks. Update-alternatives -install /usr/bin/jar jar /usr/lib/jvm/jdk1.8*/bin/jar 1065 Update-alternatives -install /usr/bin/javac javac /usr/lib/jvm/jdk1.8*/bin/javac 1065 Java,javac,jar,javaws = we have to replace these update-alternatives -install /usr/bin/java java /usr/lib/jvm/jdk1.8*/bin/java 1065 Jdk1.8* = replace it with the name of the extracted folder in this example =jdk1.8.0_05
Paste this command mv /tmp/jdk1.8* /usr/lib/jvm/ Then write this command and press enter if then mkdir /usr/lib/jvm fi Install android sdk on ubuntu linux sudo su
Go to tmp folder,a new folder name jdk and version must be created.right click on the folder and then click on rename and copy the name of the folder.Īlso read How to Install Genymotion on Ubuntuįirst write this command and click enter. Then extract the file in the /tmp folder.Al dialogue box will pop up, click on replace all.An error will also pop out click close.
Hi If you want to install android studio on ubuntu you shoudl first have Java JDk on ubuntu.įirst you have to install Oracle on Java 7 (JDK and JRE)ĭownload Java SDK 32 or 64 bit depending upon your version.
I'm reproducing my answer here to ensure a full complete answer exists rather than just a link. Note: This question is similar to the AskUbuntu question "How to install Android Studio on Ubuntu?" and my answer equally applies. Would work on 14.04LTS too if you install support for snap packages first. Do a restart (or just logout and then log back in) for the PATHs to take effect. For setting PATHs, edit your ~/.profile file: gedit ~/.profileĪnd then add the following lines to it: # Android SDK Tools PATHĮxport PATH="$/Android/Sdk accordingly. Might be needed by 3rd party dev platforms like React Native, Ionic, Cordova, etc and other tools too. This step might be useful if you want Android SDK's developer tool commands like adb, fastboot, aapt, etc available in Terminal. From here on, it's pretty straightforward, just click next-next and you'll have the SDK downloaded and installed. Select Standard install to get the latest SDK and Custom in-case you wanna change the SDK version or its install location. The Setup Wizard'll guide you through installation: Open the newly installed Android Studio from dashboard:ĭon't need to import anything if this is the first time you're installing it:
Or if you prefer the command line way, run this in Terminal: sudo snap install -classic android-studio Search "android studio" in Ubuntu Software, select the first entry that shows up and install it: The snap package bundles the latest Android Studio along with OpenJDK and all the necessary dependencies. No need to download Android Studio as zip, try to manually install it, add PPAs or fiddle with Java installation. The easiest method to install Android Studio (or any other developer tool) on Ubuntu is to use the snap package from Ubuntu Software store. Select the latest API (to test against target build, e.g API 19 (Android 4.4.2)) and some packages in Extras (Android Support Library and Android Support Repository). Click on Configure -> SDK Manager to open Android SDK Manager. You need to install some SDK before you jump into building android apps. To make sure, it’s installed successfully, open a terminal and type (you should get the version number of the jdk you’ve installed e.g javac 1.8.0_11) javac -versionĭownload the Android Studio package for Linux and extract it somewhere (e.g home directory). Sudo apt-get install oracle-java8-set-default Sudo apt-get install oracle-java8-installer sudo add-apt-repository ppa:webupd8team/java Below are the steps to install Android Studio in Ubuntu system:įirst, install Oracle JDK 8 (although you could also choose OpenJDK but it has some UI/performance issues) using WebUpd8 PPA.