Monday, May 20, 2019

Install Android Studio in Ubuntu

Install Android Studio in Ubuntu

1. Install JDK 6 or later

First, install Oracle JDK 8

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default


To make sure, it’s installed successfully, open a terminal and types

javac -version

Set the JAVA_HOME environment variable to the location of your JDK installation.

(http://www.wikihow.com/Set-Up-Your-Java_Home-Path-in-Ubuntu)

2. Download and install Android Studio

Download the Android Studio package for Linux and extract it somewhere (e.g home directory). In Here

To launch Android Studio, open a terminal, navigate to the android-studio/bin/ directory, and execute studio.sh.

cd android-studio/bin
./studio.sh  


Select whether you want to import previous Android Studio settings or not, then click OK.

Set the ANDROID_HOME environment variable to the location of your Android SDK installation

export ANDROID_HOME=/home/user_directory/Android/Sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
export JAVA_HOME=/usr/lib/jvm/java-8-oracle 


You need to install some SDK before you jump into building android apps. Click on Configure -> SDK Manager to open Android SDK Manager. 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). Then install the selected packages.

 

may be useful :)

 

No comments:

Post a Comment