Run/Install Official Android SDK Emulator on Linux Ubuntu/LinuxMint

Android SDK is the official android emulator by Google., Most of the guys might want to install this official Android SDK emulator on their machines. SO here’s a tutorial for the same , As Android SDK requires the JDK (Java Development Kit) to be installed on the machine,so in this tutorial, I’m going to be use the openJDK version of Java for installing the Official Android SDK emulator .Procedure to install official Android SDK Emulator-

  • To get started, press Ctrl – Alt – T or Open the terminal from the unity button.
  •  When it opens, the commands below to install OpenJDK.
sudo apt-get install openjdk-6-jre openjdk-6-jdk icedtea6-plugin

 

android_precise

 

  • Now, download AndroidSDK package by running the commands below. At the time of writing this post, the current version was r20. Or click this link to download the .tgz archive file.
wget http://dl.google.com/android/android-sdk_r20-linux.tgz

 

android_precise_1

 

  • After the download has finished,execute the commands below to extract the downloaded file.
tar -xvzf android-sdk_r20-linux.tgz

 

android_precise_2

 

  • After extracting the package, run the command below to change into the tools directory.
cd ~/android-sdk-linux/tools

 

android_precise_3

 

  • After the execution of previous command, run the commands below to begin the installation.
./android

 

android_precise_4

 

  • Install Android updates if there are any available.

 

android_precise_5

 

  • After updating, run the commands below to include AndroidSDK in your path environment.
gedit ~/.bashrc

 

Then add these lines at the very top of the file and save it.

 

export PATH=${PATH}:~/android-sdk-linux/tools

export PATH=${PATH}:~/android-sdk-linux/platform-tools

 

android_precise_6

 

 

Log out and log back in, then type android on the command line to launch the software.

android avd

 

Build your own phone. and Enjoy your own Official Android emulation!

 

android_precise_7

 

Comments

  1. says

    Please help , at the last step when I open Android Virtual Device Manager and when I try to create a new device I’m not able to select target , but the program won’t let me create a device without selecting a target first 🙁 I would appreciate it if someone would help me.

  2. Mark Burgoyne says

    same for me
    Please help , at the last step when I open Android Virtual Device Manager and when I try to create a new device I’m not able to select target , but the program won’t let me create a device without selecting a target first 🙁 I would appreciate it if someone would help me.

  3. says

    Hi, thank you for the instructions, they are very helpful, however I ran into a problem when I ran the “./android” command that was supposed to install it, this script came up:
    (precise)[email protected]:~$ cd ~/android-sdk-linux/tools
    (precise)[email protected]:~/android-sdk-linux/tools$ ./android
    SWT folder ‘/home/agent/android-sdk-linux/tools/lib/arm’ does not exist.
    Please export ANDROID_SWT to point to the folder containing swt.jar for your platform.

    What should I do to fix this?

    Thanks!

  4. Dave says

    I get command not found when I try android avd from the terminal in ubuntu. What the heck am I missing. I’m in the tools directory.

  5. Mike says

    I’m running linux 14.04 and can not figure out step 5, it refuses to save the file after adding the line at the top, more confusing yet its acting like a brand new file, its empty. perhaps I need to be in a specific folder when running the gedit command. it would also be helpful to clarify where to put the begining of the path because the main folder is hiding under my home folder.

    As a side note the – don’t seem to be needed but know I’m just being extra picky but maybe it will help someone else here.

Leave a Reply