Skip to content

How to run Android Apps On Ubuntu

All knows that the android also a one of the milestones by the Linux. Even though it is also from Linux base we can’t able to run the application of the android directly on Linux Platform. It needs to do some more calibration for running the android application on the Linux operating system. Here I take Ubuntu Linux and show you how to run the android application in it.

Also See: How to Run android apps on PC/MAC

Ubuntu baked by canonical becoming the one of the most popular Linux distribution and also come as OEM this year. This is the one of the milestones achieved by Ubuntu. Ubuntu Developers took their vision to develop the Android simulator which allows the android applications to run directly on the Ubuntu desktop. Canonical Developers Michael Frey leaves some details on  the Android execution environment on the Developer summit.  As the android OS get the over the commercial vendors to create the third party application which make an essential thing to run the android applications on an every Linux Distro to make the user experience as too better and boost the flexibility.

Android in ubuntu

We have to wait for the simulator from a canonical to run android application on the desktop directly . Hope so this simulator may receive at a user end by 2014. Until that you make the android applications run on the Ubuntu Desktop by yourself by following tutorial.

As the android applications are created to run with the ARM CPU the conflict begins from there towards lot many. Even though apart from those compatibility issues android use the JAVA instances which gone make a light in a dark for us.

Essential Bundles require to Run Android Applications in Ubuntu:

Make your Ubuntu Platform to ready with a list of applications listed below

  • Java 7 JDK and Runtime Environment

Install it from the Ubuntu Software Center , which is the easiest way (Or) Use

Terminal command :sudo apt-get install openjdk-7-jre openjdk-7-jdk icedtea-7-plugin

  • Android SDK tools Only

Download it from Here. (Or) Use

Terminal command : wget http://dl.google.com/android/android-sdk_r22.0.1-linux.tgz

  • libgl1-mesa-dev (To avoid libgl.so Error During the launch of Android Virtual Machine)

Terminal Command : sudo apt-get install libgl1-mesa-dev

 

Creating the Virtual Android Platform In Ubuntu:

  • After the Download completed Extract the ‘android-sdk_r22.0.1-linux.tgz‘ file by right click on it and select ‘Extract to Here’ (Or) Use

Terminal command tar -xvzf android-sdk_r22.0.1-linux.

  • Next navigate to the tools folder inside the android-sdk_r22.0.1-linux folder and run the file named android.
  • In terminal use the following command as shown below to launch the Android SDK Manager.

Android SDK manager Ubuntu

Android SDK Manager ubuntu

  • Make sure that you have an active Internet connection. The android SDK manager shows the list of software to be installed. Install it by clicking Install button.  Accept the terms and conditions and proceed to download. Make sure that all your selected packages are installed successfully before exiting the Android SDK Manager.

Note : If you don’t have an active Internet connection to download these packages. Download the Full Android ADK for Linux available for download from here

  • Open terminal and navigate to the tools folder inside the android-sdk-linux using cd command as already shown above.
  • Type the command : sudo gedit ~/.bashrc and add these two lines at the starting of the file or at the middle and save it.

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

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

  • Now it’s ready. In the terminal type  : android avd to launch the emulator.

android Emulator ubuntu

  • Click the New button to configure the new emulator.

New Android Virtual Device (AVD)

Note : Don’t use special characters in AVD name, Don’t change the size of the ram, it will result in memory allocation error in some cases.

Keep the values as per the image for better Compatibility.

  • After finishing all the settings click OK button. The New AVD was listed in the AVD manager.

Android Virtual Device Manager 1

  •   Select the AVD you want to start and click Start Button. It will  ask you for the Launch Option. Change the values as per your requirement and click the Launch button to load the AVD according to the launch option.

Launch Options AVD ubuntu

Note : You can select the screen size of the display. You can detect your monitor dpi by click the ‘?’ Button.

That’s all you are at the end of the session. Your AVD will Load now. You can see a virtual Android Device with Internet connected.

ubuntu on android

Note : Mouse Click Instead of touch

Install *. apk File inside Virtual Device Manually.

Now your virtual machine got the capability of running the android application in it. You can install the android application directly download it using the web browser available in the AVD or else copy the apk file to the below mentioned location.

/android-sdk-linux/platform-tools/

  • Start the AVD which you want to install the apk application.
  • After your virtual device Started.
  • Open a new terminal window by pressing Ctrl+alt+T. Navigate to the platform-tool folder using the cd command as you know already.
  • Type the following command in the Terminal.

                adb install [androidapplication name.apk]

install apk application in ubuntu

Now you can see an Installed application installed inside the Virtual Android Device’s menu and  the application is ready to use.

whatsapp on ubuntu

If you have any doubts kindly drop us in Comment Section below.

24 thoughts on “How to run Android Apps On Ubuntu”

    1. If you are having trouble with sudo gedit and you can’t figure it out yourself or with a quick google search my advice is to format your harddrive and reinstall windows.

  1. Trying to lunch and getting this message:

    #Starting emulator for AVD ‘haivriAndroid’
    Failed to start emulator: Cannot run program “/home/haivri/android-sdk-linux/tools/emulator”: error=2, No such file or directory#

    1. sudo apt-get install ia32-libs or sudo aptitude install ia32-libs lib32ncurses5 lib32stdc++6
      Use any of this command to recover the error .. If you are using 64 bit operating system

  2. how to uninstall the apps we installed in this for example how to uninstall whatspp from this?
    Also tell how to uninstall this whole thing?

  3. when I get to the gedit part. this is what I got..

    judessa@judessa:~$ cd android-sdk-linux/tools
    judessa@judessa:~/android-sdk-linux/tools$ sudo gedit ~./bashrc
    [sudo] password for judessa:

    (gedit:4765): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

  4. heys guys,
    i am thankful!!!!
    it is working and i can test apps on my sytem first.
    enjoy coding and live long.
    greetz from germoney

  5. Hey,

    first of all nice tutorial.

    My Problem:
    When I want to create a new virtual device, I cant pick a CPU/ABI and at the bottom of the box is a message that says “No CPU/ABS system image available for this target”. And thats messages comes up with all devices. Pls help me out

  6. hai
    i want to build an android without default apps, i have already removed some apps from makefiles in /build/target/product directory (i.e. Deskclock/contacts etc from core.mk generic_no_telephony.mk mini.mk etc).. after rebuilding the android i still find some apps ( like talk.apk, update.apk, gmail2.apk etc in /out/system/app).so i want to remove these apps permenantly from build android..can any one tell me how to do that..

    thank you!!!!

    1. do check the wipe User Data check box in the Launch Option Dialog Box. it will wipe all your user data and launch a fresh android. Refer the last point under “Creating the Virtual Android Platform In Ubuntu:”

  7. Good day! I request the help of the noble friends in the following question :
    I use Android on Ubuntu 04.14 LTS Virtualized with VirtualBox (OVA file) and AndroVMPlayer . It works great, but I just would like to know how to enable the keyboard to play ” Temple Run 2 ” because only the mouse works and part of the so-called game ” TILT TO COLLECT COINS ” you can not use the mouse to overcome this part of the game , making it essential to use the keyboard. Grateful for the attention!

Comments are closed.