• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install Android studio in Ubuntu

680

To install Android studio in Ubuntu 16.04

Android Studio is the free IDE (integrated development environment) for Android platform development. Installation of Android studio is explained in this tutorial.


To install Java

Before installing android studio, add the java repository to apt source, using “ add-apt” command.

root@linuxhelp:~# add-apt-repository -y ppa:webupd8team/java
gpg: keyring `/tmp/tmps5bnjwws/secring.gpg'  created
gpg: keyring `/tmp/tmps5bnjwws/pubring.gpg'  created
gpg: requesting key EEA14886 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmps5bnjwws/trustdb.gpg: trustdb created
gpg: key EEA14886: public key " Launchpad VLC"  imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK

Update repository by running the following command.

root@linuxhelp:~# apt-get update
Hit:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease             
Hit:3 http://security.ubuntu.com/ubuntu xenial-security InRelease              
Hit:4 http://ppa.launchpad.net/enlightenment-git/ppa/ubuntu xenial InRelease   
Hit:5 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease           
Hit:6 http://ppa.launchpad.net/gns3/ppa/ubuntu xenial InRelease          
Hit:7 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
Reading package lists... Done

Run the following command to install java.

root@linuxhelp:~# apt-get install oracle-java7-installer oracle-java7-set-default
Reading package lists... Done
Building dependency tree       
Reading state information... Done
.
.
install-Android-studio-Ubuntu16.04-IDE-integrated-development-environment-Android-platform-development-java-installer
install-Android-studio-Ubuntu16.04-IDE-integrated-development-environment-Android-platform-development-license
.
.
Oracle JDK 7 installed
update-alternatives: using /usr/lib/jvm/java-7-oracle/jre/lib/amd64/libnpjp2.so to provide /usr/lib/mozilla/plugins/libjavaplugin.so (mozilla-javaplugin.so) in auto mode
Oracle JRE 7 browser plugin installed
Setting up gsfonts-x11 (0.24) ...
Setting up oracle-java7-set-default (7u80+7u60arm-0~webupd8~1) ...

Now the java installation is successfully completed.

Install the following dependencies.

root@linuxhelp:~# apt-get install lib32stdc++6 lib32ncurses5-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  gcc-5-multilib gcc-multilib lib32asan2 lib32atomic1 lib32cilkrts5 lib32gcc-5-dev
  lib32gcc1 lib32gomp1 lib32itm1 lib32mpx0 lib32ncurses5 lib32quadmath0 lib32tinfo-dev
  lib32tinfo5 lib32ubsan0 libc6-dev-i386 libc6-dev-x32 libc6-i386 libc6-x32
.
.
.
.
Setting up libtinfo-dev:amd64 (6.0+20160213-1ubuntu1) ...
Setting up libncurses5-dev:amd64 (6.0+20160213-1ubuntu1) ...
Setting up lib32ncurses5-dev (6.0+20160213-1ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...

Add android repo file to “ apt” source list.

root@linuxhelp:~# add-apt-repository ppa:paolorotolo/android-studio
 Automatic builds for Android Studio by Google packaged for Ubuntu.
 More info: https://launchpad.net/~paolorotolo/+archive/ubuntu/android-studio
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmp2jx0f0cd/secring.gpg'  created
gpg: keyring `/tmp/tmp2jx0f0cd/pubring.gpg'  created
gpg: requesting key 7B9B74AA from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp2jx0f0cd/trustdb.gpg: trustdb created
gpg: key 7B9B74AA: public key " Launchpad PPA for Paolo Rotolo"  imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK

Next update apt source list.

root@linuxhelp:~# apt-get update
Hit:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease          
Hit:2 http://security.ubuntu.com/ubuntu xenial-security InRelease   
Hit:3 http://ppa.launchpad.net/enlightenment-git/ppa/ubuntu xenial InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease       
Hit:5 http://ppa.launchpad.net/gns3/ppa/ubuntu xenial InRelease          
Hit:6 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease     
Get:7 http://ppa.launchpad.net/paolorotolo/android-studio/ubuntu xenial InRelease [17.6 kB]
Hit:8 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease
Get:9 http://ppa.launchpad.net/paolorotolo/android-studio/ubuntu xenial/main amd64 Packages [464 B]
Get:10 http://ppa.launchpad.net/paolorotolo/android-studio/ubuntu xenial/main i386 Packages [464 B]
Get:11 http://ppa.launchpad.net/paolorotolo/android-studio/ubuntu xenial/main Translation-en [200 B]
Fetched 18.7 kB in 5s (3,640 B/s)
Reading package lists... Done

To install Android studio

Utilise the following command to install Android studio.

root@linuxhelp:~# apt-get install android-studio
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  android-studio
.
.
.
.
  inflating: android-studio/lib/coverage-util.jar  
  inflating: android-studio/lib/xbean.jar  
  inflating: android-studio/lib/junit.jar  
  inflating: android-studio/lib/jps-model.jar  
  inflating: android-studio/lib/icons.jar  
  inflating: android-studio/lib/httpclient-4.4.1.jar  
  inflating: android-studio/lib/winp-1.23.jar  
  inflating: android-studio/LICENSE.txt  

Now we have successfully installed android studio.

Search Android studio app in the Unity dash board.
install-Android-studio-Ubuntu16.04-IDE-integrated-development-environment-Android-platform-development-Search-Android-studio-app
" Complete installation" message box appears, Click “ OK”
install-Android-studio-Ubuntu16.04-IDE-integrated-development-environment-Android-platform-development-Complete-installation

install-Android-studio-Ubuntu16.04-IDE-integrated-development-environment-Android-platform-development-Android-studio-image
Open “ Android studio setup wizard” and click “ next” .
install-Android-studio-Ubuntu16.04-IDE-integrated-development-environment-Android-platform-development-setup-wizard
Choose the type of installation and click “ next” .
install-Android-studio-Ubuntu16.04-IDE-integrated-development-environment-Android-platform-development-type-installation
Verify the settings and click “ next” to proceed further.
install-Android-studio-Ubuntu16.04-IDE-integrated-development-environment-Android-platform-development-Verify-settings
Click “ finish” to run android emulator.
install-Android-studio-Ubuntu16.04-IDE-integrated-development-environment-Android-platform-development-run-android-emulator
After the components is downloaded, click “ finish” .
install-Android-studio-Ubuntu16.04-IDE-integrated-development-environment-Android-platform-development-components-downloaded
Welcome page appears. Select “ start a new android studio project” .
install-Android-studio-Ubuntu16.04-IDE-integrated-development-environment-Android-platform-development-Welcome-page
In Configure your new project, set project name and domain. Then click “ next” .
install-Android-studio-Ubuntu16.04-IDE-integrated-development-environment-Android-platform-development-Configure-new-project
Select the form factor for android device and click “ next”
install-Android-studio-Ubuntu16.04-IDE-integrated-development-environment-Android-platform-development-form factor
Next select “ activity” and click “ next” .
install-Android-studio-Ubuntu16.04-IDE-integrated-development-environment-Android-platform-development-activity
Enter the “ activity name” , “ layout name” and click “ finish” .
install-Android-studio-Ubuntu16.04-IDE-integrated-development-environment-Android-platform-development-activity_main
Now the project will be loaded.
install-Android-studio-Ubuntu16.04-IDE-integrated-development-environment-Android-platform-development-initializing-module

install-Android-studio-Ubuntu16.04-IDE-integrated-development-environment-Android-platform-development-main-activity

Tags:
ethan
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What is Android studio?

A

*Android Studio is the free IDE (integrated development environment) for Android platform development.

Q

What devices are supported for Google Play Instant?

A

Google Play Instant is supported on the majority of devices running Android 5.0 (API level 21) and higher.

Q

Which SDK version should an instant app target?

A

our instant app's manifest must set targetSdkVersion to 26 or higher.

Q

Is multidex supported for instant apps?

A

Multidex is supported for instant apps. If you have an app that satisfies the maximum size requirement but contains more methods than the dex limit of 65,536 methods, you can still enable multidex and publish it as an instant app.

Q

Can two instant apps run in parallel?

A

Yes, instant apps can run in parallel and users can switch between them. Only the instant app in the foreground has an icon in the notification shade.

Related Tutorials in How to install Android studio in Ubuntu

Related Tutorials in How to install Android studio in Ubuntu

How to install Meld tool in Ubuntu
How to install Meld tool in Ubuntu
Feb 25, 2017
How to install Dconf-Editor on Ubuntu 18.04
How to install Dconf-Editor on Ubuntu 18.04
Jul 14, 2018
How to install and update OpenSSL on Ubuntu 16.04
How to install and update OpenSSL on Ubuntu 16.04
Mar 9, 2017
How to install GLib 2.0 on Ubuntu 17.04
How to install GLib 2.0 on Ubuntu 17.04
May 22, 2017
How to Install Android Emulator on Ubuntu 20.4.1
How to Install Android Emulator on Ubuntu 20.4.1
Jul 13, 2021
How To Install AnyDesk on Ubuntu 16.04
How To Install AnyDesk on Ubuntu 16.04
Apr 4, 2018
How to install Genymotion 2.12.1 on Ubuntu 18.04
How to install Genymotion 2.12.1 on Ubuntu 18.04
Jul 9, 2018
How to install Timeshift 18.4 on Ubuntu 18.04
How to install Timeshift 18.4 on Ubuntu 18.04
Jul 6, 2018

Related Forums in How to install Android studio in Ubuntu

Related Forums in How to install Android studio in Ubuntu

Ubuntu
matthew class=
Failed to enable unit: Refusing to operate on linked unit file sshd.service
Apr 15, 2019
Ubuntu
mason class=
Passwd: You may not view or modify password information for root On Ubuntu 19.04
May 27, 2019
Ubuntu
isaac class=
/etc/apt/sources.list Permission denied
May 18, 2017
Ubuntu
yousuf class=
lsb_release command not working : Debian
Jan 18, 2018
ifconfig command
jackbrookes class=
what is the location of the ifconfig program on your machine?
Jan 4, 2018
Ubuntu
mason class=
"E: Package 'php-mcrypt' has no installation candidate" error on Ubuntu 20.4.1
Mar 15, 2021
NFS
luke class=
clnt_create: RPC: Program not registered
Apr 25, 2017
Apache
isaac class=
How to disable apache welcome page on Ubuntu
Dec 15, 2018

Related News in How to install Android studio in Ubuntu

Related News in How to install Android studio in Ubuntu

How To Install Mixxx on Ubuntu 16.04
How To Install Mixxx on Ubuntu 16.04
Oct 11, 2017
Ubuntu 17.04 released with greater expectations
Ubuntu 17.04 released with greater expectations
Apr 15, 2017
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Mar 1, 2017
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Sep 2, 2017
Ubuntu Unity is no more: One Linux dream has been axed
Ubuntu Unity is no more: One Linux dream has been axed
Apr 7, 2017
What’s next for Ubuntu Linux Desktop?
What’s next for Ubuntu Linux Desktop?
Apr 11, 2017
Say Hi to Ubuntu's new mascot
Say Hi to Ubuntu's new mascot
Mar 22, 2019
KDE Connect App was removed from Google Play Store and brought back in 24 hours
KDE Connect App was removed from Google Play Store and brought back in 24 hours
Mar 22, 2019
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Jayce ?
What are the types of table used in IPtables

What are the various types of table used in IPtables and how to use that for my server security?

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.