Android can be installed in two ways in Ubuntu; one is installing command line tools and other is installing android studio. And installing android-studio is bit easy in windows.
In this blog post I will show you different ways of installing android studio in Ubuntu in steps.
Installing Android studio IDE
Android studio requires Java Read the blog post for installing Java in Ubuntu Click
1. Download Android studio
Download Android studio for linux
Extract the zip file
$ sudo unzip ~/Downloads/android-studio-ide-* -d /opt/
To launch Android studio
$ cd /opt/android-studio/bin
$ ./studio.sh
2. Download SDK
You need to install some SDK before you jump into building android apps.
Click on Configure -> SDK Manager and install required SDK Platforms
Itwill be hard to change the directory to /opt/android-studio/bin and running ./studio.sh file everytime.
So we will create a link to the studio.sh file
$ cd /bin
$ sudo ln -s /opt/android-studio/bin/studio.sh studio
Now you can run$ studio from anywhere in Ubuntu to launch the android studio
Installing android studio command line tools
1. Download command line tools for linux
2. Extract Downloaded zip file in home folder
3. Open/home/username/Android/Sdk/tools/bin/ in terminal and run $ ./sdkmanager to install android sdk
$ sudo nano ~/.bashrc
export ANDROID_HOME=/home/username/Android/Sdk
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
Note: Change the username to respective username of your pc
Enjoy! Working with android


No comments:
Post a Comment