Could not launch emulator in Android Studio

前端 未结 9 502
余生分开走
余生分开走 2020-11-29 12:07

I tried to launch application in emulator in android Studio in ubuntu 14.04 and it shows the following errors.

  1. Error shown while gradle build is in process:
相关标签:
9条回答
  • 2020-11-29 12:34

    I'm using Android Studio 2.3: edit file : .profile

    export ANDROID_HOME=${HOME}/Library/Android/sdk
    
    export PATH=${PATH}:${ANDROID_HOME}/emulator
    

    before

    export PATH=${PATH}:${ANDROID_HOME}/tools
    

    Like:

    0 讨论(0)
  • 2020-11-29 12:35

    I try with this code in .bashrc now it's working:

    export ANDROID_HOME=/home/AccountName/Android/Sdk
    
    export PATH=${PATH}:${ANDROID_HOME}/emulator
    
    0 讨论(0)
  • 2020-11-29 12:39

    So I looked around to find some similair posts that encountered what you did, for the 1st error I found this that might fix the issue:

    qemu-system

    for the second one:

    I saw multiple people that had this issue (source not super relevant). Some recommended updating your android studio or the SDK. Seeing as this might intervene with the 1st error I recommend just doing the 1st step and then check again.

    0 讨论(0)
  • 2020-11-29 12:39

    Also, this happened for me when I had the system image installed — but not the emulator itself.

    0 讨论(0)
  • 2020-11-29 12:43

    Try copy 'lib' folder from your Android sdk location /Android/Sdk/tools/lib64/qt/lib to ../Android/Sdk/tools/lib/qt/lib

    0 讨论(0)
  • 2020-11-29 12:44

    It may be Android Emulator is not installed.

    To add it to the Android Studio installation, go to Tools->Android->SDK Manager, select the SDK Tools tab, then ensure that Android Emulator is selected.

    0 讨论(0)
提交回复
热议问题