Cannot start Emulator in android studio 2.0

前端 未结 14 2257
渐次进展
渐次进展 2020-12-02 05:11

I just upgraded my android studio from 1.5 to 2.0.And now I am facing some weird bug when I try to start Emulator. I use Ubuntu 15.10 OS

Android monitor returns this

14条回答
  •  自闭症患者
    2020-12-02 05:46

    I had the same issue on an Arch Linux box. I had to do two things to solve all the issues:

    1. Install mesa-demos. This is the Arch Linux package which contains glxinfo:

      $ sudo pacman -S mesa-demos
      
    2. Run the emulator with the -use-system-libs flag:

      $ emulator -avd  -use-system-libs
      

      To enable this behavior in Android Studio, I set the ANDROID_EMULATOR_USE_SYSTEM_LIBS enviornment variable in ~/.zshrc.

      export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1
      

      You can also set this in ~/.profile or ~/.bashrc. In all of these cases, you will have to start Android Studio from the command-line. Alternatively, you can set it in ~/.pam_environment to be able to start Android Studio from a desktop launcher:

      ANDROID_EMULATOR_USE_SYSTEM_LIBS=1
      

提交回复
热议问题