How to Install Android Emulator on Ubuntu 20.4.1
To Install Android Emulator on Ubuntu 20.4.1
Introduction:
Android SDK is the Android emulator developed by Google and it implements the API libraries and developer tools required to build, test, and debug apps for Android in Linux System. We can also install Android Emulator through Genymotion Android Emulator which is the alternative to the Android emulator. This video will cover the installation of Android Emulator on Ubuntu 20.4.1
Installation process:
For installing Android emulator, you need to have install java installed in your system. You should also install the needed dependency packages before installing the android emulator. Run the following commands for installing the dependencies.
root@linuxhelp:~# apt-get install libgl1-mesa-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libegl-dev libegl1 libgl-dev libgl1 libgles-dev libgles1 libgles2 libglvnd-dev libglvnd0 libglx-dev libglx0 libopengl-dev
libopengl0 libpthread-stubs0-dev libx11-dev libxau-dev libxcb1-dev libxdmcp-dev x11proto-core-dev x11proto-dev
.
Next, you need to download the android emulator package, and for that you need to run the following command.
root@linuxhelp:~# wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
--2020-12-23 09:47:02-- http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
Resolving dl.google.com (dl.google.com)... 216.58.196.78, 2404:6800:4009:809::200e
Connecting to dl.google.com (dl.google.com)|216.58.196.78|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 326412652 (311M) [application/x-tar]
Saving to: ‘android-sdk_r24.4.1-linux.tgz’
android-sdk_r24.4.1-linux.tgz 100%[==========================================================>] 311.29M 144KB/s in 20m 44s
2020-12-23 10:07:47 (256 KB/s) - ‘android-sdk_r24.4.1-linux.tgz’ saved [326412652/326412652]
After that, you should extract the downloaded package by making use of the following command.
root@linuxhelp:~# tar -xvf android-sdk_r24.4.1-linux.tgz
android-sdk-linux/
android-sdk-linux/tools/
android-sdk-linux/tools/emulator-x86
android-sdk-linux/tools/source.properties
android-sdk-linux/tools/lint
android-sdk-linux/tools/emulator64-mips
android-sdk-linux/tools/android
android-sdk-linux/tools/ddms
android-sdk-linux/tools/emulator64-arm
android-sdk-linux/tools/lib/
List the directory
root@linuxhelp:~# ls -la
total 318792
drwx------ 4 root root 4096 Dec 23 10:07 .
drwxr-xr-x 20 root root 4096 Nov 6 04:51 ..
drwxrwxr-x 5 249512 5000 4096 Oct 14 2015 android-sdk-linux
-rw-r--r-- 1 root root 326412652 Oct 20 2015 android-sdk_r24.4.1-linux.tgz
-rw------- 1 root root 290 Nov 16 20:51 .bash_history
-rw-r--r-- 1 root root 3106 Dec 5 2019 .bashrc
drwx------ 2 root root 4096 Jul 31 22:01 .cache
-rw-r--r-- 1 root root 161 Dec 5 2019 .profile
Change the directory :
root@linuxhelp:~# cd android-sdk-linux
root@linuxhelp:~/android-sdk-linux# cd tools/
Later, change the directory to /android-sdk-linux/tools/ and execute the android file by running the following command to open the Android SDK manager.
root@linuxhelp:~/android-sdk-linux/tools# ./android
After that, Android SDK manager opens as follows.
You can check out the Android SDKs for different versions.
Also, you can check the list of existing Android Virtual Devices from the AVD manager. If there isn' t any device, you can create one.
Also, the same way, you can check the list of Device definitions.
If you want to know more information on Android emulator, you can see its about section.
With this, the installation of Android SDK comes to an end.
Comments ( 0 )
No comments available