Everybody know Android OS (Opensource) is market leader. It was developed especially for touchscreen mobile devices like smartphones & tablet.
Initially android was developed by android Inc and later Google acquired and they are doing further development on this.
If you want to run any mobile apps such as WhatsApp in your system, you should have installed any android emulator. The Android Emulator simulates Android devices on your system, which allows you to test any mobile applications on a variety of devices and Android API levels without needing to have each physical device.
It provides almost all of the capabilities of a real Android device and you can simulate incoming phone calls and text messages, specify the location of the device and much more.
Android SDK is the official android emulator which was developed by Google to emulate the Android App in Linux System.
In this article, we will explain how to install android emulator using android SDK in Linux.
If you are looking for alternative tools for this, i would suggest you to check the below tools.
Android SDK depends 32-bit Libraries in run time, so 64-bit user should install 32-bit libraries on system to work properly or else you will be getting an error when you are launching the device.
[Install 32-bit libraries ia32-libs Package] $ sudo apt-get install ia32-libs [If you don't have ia32-libs package, then install Alternative Package] $ sudo apt-get install libgl1-mesa-dev
1) How to install Java in Linux?
Android SDK purely depends on
JAVA. So, you have to install either
Oracle JAVA before proceeding Android SDK installation.
- How To Install Oracle Java 9 & 8 (JDK) on CentOS, RHEL, Fedora, Arch Linux & openSUSE
- How To Install Oracle Java 7, 8 & 9 (JDK & JRE) on Debian Via Repository
- How to install Oracle Java Series (JAVA 9, JAVA 8, JAVA 7, JAVA 6) via PPA in Ubuntu & Mint
- How To Install JAVA ( OpenJDK ) 6 / 7 / 8 on Linux
2) Checking installed JAVA version in Linux
Use the below command to check the java version which you have installed on your system.
$ java -version java version "1.8.0_20" Java(TM) SE Runtime Environment (build 1.8.0_20-b26) Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)
3) How to download SDK package?
There is no distribution official package for Android SDK hence, we need to download an Android SDK package from android official site. Make sure you have to download the package in
/opt directory because opt directory is dedicated for third party software installation.
$ cd /opt $ wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz $ sudo tar -zxvf android-sdk_r24.4.1-linux.tgz $ cd /android-sdk-linux/tools $ ./android
You will see the below pop-up window when you are run android shell file.
4) Choose required Android SDK version
Here you can choose which version of Android SDK you are going to install. I’m going to choose Android version 2.3.3 and hit Install Packages option to install the required packages from source.
Accept License option and hit the Install button to proceed further.
Installation is on-going. Do the same steps until all packages get installed.
Installation got over.
5) How to add Android Virtual Device (AVD)
Create a new Android Virtual Device for you. Click
Create button to add a new AVD on your android emulator. Click
tools button to launch AVD creation window. If it is not showing maximize the current windows and get the
Choose the required configuration as like below screen shot, then hit
This is your configuration output based on your selection which you had done in the above steps, then hit
6) How to launch a new Android Virtual Device (AVD)?
Choose your Android Virtual Device (AVD) then hit
Start button. Which will popup the
Launch Options, Just hit the
Launch Option, just hit Launch button.
Emulator kick your AVD and initiate it, it will take few seconds to load.
7) How to launch a new Android Device?
See The below screen shot the new android device got launched in my PC.
Browser icon to access the Internet.
We are preparing all articles in-depth to understand by all level/stage Linux administrators. If the article is useful for you, then please spend less than a minute to share your valuable comments in our commenting section.
Please stay tune with us…Good Luck.