Everyone knows that Android OS (Opensource) is the market leader. It was developed especially for touchscreen mobile devices like smartphones & tablet computer.
Android was developed by Android Inc. Later Google acquired it and are doing further developments on it.
If you want to run any mobile apps such as WhatsApp in your system, you must install an 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 requiring those physical device at hand.
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 the android SDK in Linux.
If you are looking for alternative tools, please go through the two articles below:
- How To Install GenyMotion (Android Emulator) On Linux
- Anbox – Easy way to run Android Apps on Linux
Android SDK depends on 32-bit Libraries during run time, so 64-bit users should install 32-bit libraries on their system for it to work properly, otherwise you will get an error when you launch 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 with Android SDK installation. Please go through the below articles to understand the Java installation process:
- 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 that’s 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 the SDK package?
$ 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 run the android shell file:
- How to Use the chgrp Command with Examples
- How To Install Git On Arch Linux
- How to Install or Upgrade to Kernel 5.0 in CentOS 7
- Configuring a Fedora Linux Mail Client (Evolution)
- Ten things you didn’t know about Solaris that will surely surprise you
4) Choose the 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 the Install Packages button to install the required packages from source.
Accept License‘ option and hit the Install button to proceed further.
Installation is on-going. Repeat the steps until all the relevant packages are installed.
Installation got over.
5) How to add Android Virtual Device (AVD)
In the Android Virtual Device manager, go to the Android Virtual Devices tab as shown in the screenshot above. Click the
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 window to see the ‘
Choose the required configuration as shown in the screenshot below, and hit the
This is your configuration output based on your selections in the above steps 1-5. Hit
6) How to launch a new Android Virtual Device (AVD)?
Choose your Android Virtual Device (AVD) then hit the
Start button. It will popup the
Launch Options, Just hit the
Launch button to kickstart the Android Emulator, if you don’t want to specify any launch option.
- How to Sync Google Drive on Linux
- What Do You Need To Pass the Linux Essentials Exam?
- How to Use the Linux tee Command
- How to Generate CSR for Wildcard SSL — Quick Guide
- Gitrecon – OSINT Tool For Github in Kali Linux
It will take a bit of time to load as shown below:
7) How to launch a new Android Device?
Please refer the below screenshot. You will see that the new android device is launched on my PC:
Browser icon to access the Internet.
In this article, we showed you how to install an Android Emulator in Linux along with it’s prerequisites like Java SDK. We installed the official android SDK.
We are preparing all our articles in-depth so that they can be easily understood by Linux administrators at all levels . If the article was useful to you, then please spend less than a minute to share your valuable comments below.
Please stay tuned with us for more articles…Happy learning!.