Android Emulator is not starting in Ubuntu

那年仲夏 提交于 2019-11-28 23:51:00

Run your emulator in Command Line Parameters

To start an instance of the emulator from the command line, navigate to the tools/ folder of the SDK. Enter emulator command like this:

emulator -avd <avd_name>

more about emulator link here:

On Ubuntu 14.04 64bit with a NVidia graphics card I had to do the following:

  1. Install the SDK and ADT plugin for Eclipse
  2. Install 32-bit libraries sudo apt-get install lib32stdc++6 lib32z1
  3. Install OpenGL libraries sudo apt-get install libgl1-mesa-dev
  4. Install proprietary drivers for the graphics card: System Settings > Software & Updates > Additional Drivers NVIDIA binary driver version 331.38
  5. From Eclipse, run the Android Virtual Device Manager and edit a device. Enable "Use Host GPU" & save.

It then worked.

idattatrey

Ubuntu Android Emulator Problem [Solved]

The issue with android emulator is not the hardware drivers. It is OpenGL drivers. To solve it please go through these steps:

  1. Open synaptic package manager (If not please install it from Ubuntu software center)
  2. In Quick filter type “opengl” and press search.
  3. Select the following packages:
    libgles1-mesa-dev
    libgles2-mesa-dev
    libgles1-mesa
    libgles2-mesa
    libqt4-opengl [Update/Upgrade]
    glmark2
    glmark2-es2
    libgles1-mesa-dbg
    libgles2-mesa-dbg
    freeglut3
    libhugs-opengl-bundled

  4. Selection procedure
    Right click on the package and select as ‘Mark for Installation”.

  5. And click ‘Apply’.
  6. Enjoy the ANDROID PROGRAMMING WITH THE EMULATOR.

on Ubuntu 12.04 LTS 64-Bit (installed the 32-bit libraries), My Case was :

1- downloaded and installed the SDK properly

2- download ADT plug in to Eclipse and restart it

3- set the SDK directory properly

4- create an Android project, and click RUN AS > Android application

5- asked me for an Emulator, so i created one from the AVD (after some steps from the Run Configurations)

6- then i Right-Click that application again, RUN AS > Android Application

7- a message appears > ERROR : Couldn's start Emulator ... install SDK properly (something like that)

8- Restart Eclipse ... every thing is fine !!!!!!!!!!!!!!!!!!

Shivam ashtikar

You need to change the following option:
Edit your avd and change the "emulated performance" option to "software".

It will work.

I am using Bumblebee to disable my nvidia card...

It seems like Android Studio does not like that.

optirun /opt/android-studio/bin/studio.sh

And then open AVD Manager in Android Studio made it work.

Source: https://cialu.net/solve-android-studio-avd-issue-with-ubuntu-16-10/

   sudo apt-get install lib64stdc++6:i386

   sudo apt-get install mesa-utils

(look for the path of the sdk)

  cd YOURPATH/Android/Sdk/emulator/lib64

  mv libstdc++/ libstdc++.bak

  ln -s /usr/lib64/libstdc++.so.6  libstdc++

Finally, run your application again using emulator.

If you are getting error like above then please update/upgrade your Linux Machine(Ubuntu) as for example

  1. sudo apt-get update
  2. sudo apt-get upgrade

and make sure that all as per Android Developer website all the required software are installed. If Still you are facing same issue as per image then use su mode in your terminal before starting emulator. sudo su - Use this command to be Su user

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!