当前位置: 首页>>技术教程>>正文


如何在Ubuntu 13.04中运行Android模拟器

, ,

问题描述

有没有办法在13.04这样做?如果是这样,你还可以提供step-by-step指令吗?

最佳解决思路

  1. 从Ubuntu软件中心安装VirtualBox。

    android,emulator,ubuntu

  2. 下载并安装Genymotion

  3. 使用步骤mentioned here创建一个新的虚拟机。

次佳解决思路

这是一个有点长的过程,但我找到了一个博客,有一步一步的指令在ubuntu.s上安装android模拟器。检查此博客Run Android Emulator on Ubuntu 13.04

Install Whatsapp in Ubuntu/Linux

12/29/2013, atularvind, Comment closed

Most of Android phone have “Whatsapp” application installed and running. this post is for PC freak who need to install the whatsapp mobile app on the ubuntu/linux. Whats app Ubuntu

Here is the few easy steps for How to Install Whatsapp in the ubuntu/linux. You don’t need to be a programmer for installing whatsapp in ubuntu. what we are going to do is installing the android emulator and in it we will install whats app.

  1. You need to install android emulator, for that you need to download Here is the guide that describe how to install android emulator in the ubuntu/linux
  2. After installing & running the android emulator you need to open a browser in it.

Whats app android+ ubuntu

  1. In the browser open Google and search for “what app for android“. or go to the link http://www.whatsapp.com/android/ for downloading whatsapp apk file. click on Download now.

  2. After Downloading the file install the whatsapp Apk file under your emulator.
    Whats app ubuntu

  3. Whatsapp will ask for mobile varification. choose your country and enter your mobile number, in order to verify the mobile SIM card.
    Whatsapp ubuntu

  4. After the SIM varification whatsapp will ask for the personal information like photo, name. and click next in order to complete the whatsapp installation.
    install whats app linix

After following This steps you can use the whats app under the any version of Ubuntu.

上述文章中的https://web.archive.org/web/20130805194456/http://linuxicle.blogspot.com/2013/06/how-to-run-android-emulator-on-ubuntu.html副本:

Monday, May 13, 2013

How to install/run Android emulator on Ubuntu or Debian

Here is guide on how to run Android emulator on Ubuntu or Debian.
Android emulator comes with Android SDK, and therefore you need to install Android SDK. Follow the steps below to install Android SDK on Linux.

Android SDK requires Java JDK. Therefore install Java JDK first.

To install Java JDK on Ubuntu or Debian:

sudo apt-get install openjdk-7-jdk   

To install Java JDK on CentOS, Fedora or RHEL, first set up Repoforge repository on your system, and then run the following.

sudo yum install java-1.7.0-openjdk-devel   

Now download Android SDK ADT bundle from Android official site. Unzip the downloaded ADT bundle, and copy the sdk directory to your preferred location. Here I assume that the installation directory of Android SDK is ~/android-sdks.

For 64-bit Linux user: you must install another prerequisite called ia32-libs since Android emulator is 32-bit software. The ia32-libs package contains a set of runtime libraries for the ia32/i386 architecture, configured for use on a 64-bit kernel. On 64-bit Linux, the mksdcard utility which creates SD cards will fail without this package.

sudo apt-get install ia32-libs   

While using ia32-libs, if you encounter any error with 32-bit libGL.so, do the following:

sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1.2.0 /usr/lib/libGL.so   

In order to run Android emulator, you first need to create a new AVD (Android Virtual Device) which is an emulator configuration for the Android device to be emulated. To create a new AVD, first launch Android SDK Manager by running the following.

 ~/android-sdks/tools/android   

Go to “Tools” > “Manage AVDs” on Android SDK Manager’s menu. It will open up AVD Manager.

Click on “Add” button to create a new AVD. An example configuration of a new AVD is shown below.

If an AVD has been successfully created, you will see the following confirmation.

You can check the list of available AVDs as follows.

~/android-sdk/android list avds      Available Android Virtual Devices:      Name: my_avd      Path: /home/xmodulo/.android/avd/my_avd.avd     Target: Android 4.2 (API level 17)       ABI: armeabi-v7a      Skin: 800x1280     Sdcard: 1G   

To launch Android emulator with the AVD that you have created, highlight the AVD on AVD Manager, and click on “Start” button on the right sidebar.

Alternatively, you can start Android emulator directly from command line as follows. In this case, specify “@[your_avd_name]” as an argument to the emulator.

 emulator @my_avd    

Booting up Android emulator may be slow (even taking minutes) depending on your hardware. Once Android emulator is successfully launched, you will see an running instance of Android device.

enter image description here

Have a Happy Droiding!

编辑:Genymotion再次是一个不错的选择,这是Install GenyMotion in ubuntu 13.04的指南

另一个编辑(由其他人:):由于上面的genymotion链接已经死了,它非常好,here is a guide for 14.04

Install Genymotion

  • First install virtualbox

    sudo apt-get install virtualbox 
  • Click below to register on Genymotion site, and download either 32bit or 64bit version depending on your hardware architecture (to find what you are using, you can read this)

Genymotion Registration Page

  • Change directory to where you downloaded the bin file and run following commands. Accept the default install path

    chmod +x genymotion-2.2.2_x64.bin  ./genymotion-2.2.2_x64.bin 
  • Change directory to where genymotion was installed. The default is /home/[username]/genymotion/

    cd /home/[username]/genymotion/  ./genymotion 
  • Click Yes to add your first virtual device enter image description here

  • Click Connect to login and install a device enter image description here

  • Select desired device and click Next enter image description here

  • Enter a name for your device and click Next enter image description here

  • Wait until your virtual device is downloaded and deployed enter image description here

  • Click Finish enter image description here

  • Click Play to start the emulator enter image description here

第三种解决思路

安装一个名为Genymotion的应用程序,其余的只会流… Ubutu上最好的Android模拟器

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/1792.html,未经允许,请勿转载。