Android 에뮬레이터 오류 메시지 : “PANIC : ‘x86’CPUS에 대한 에뮬레이터 엔진 프로그램이 없습니다.” Android 에뮬레이터를 실행하려고합니다. 이것은 내 DVD입니다

AVD Manager를 사용하여 Android 에뮬레이터를 실행하려고합니다. 이것은 내 DVD입니다 :
http://image-upload.de/image/fnx79V/52b0d050ee.png

그리고 이것은 시작함으로써 일어나는 일입니다.

http://image-upload.de/image/vGpQfa/e912d83939.png

Macbook Pro Retina가 있습니다. 인텔 페이지에서 직접 Haxm 드라이버를 설치했습니다.

에뮬레이터가 작동하지 않습니다. 모두 같은 “오류”메시지가 나타납니다.

명령 실행 (이 오류는 Android-sdk 및 Android-platform-tools를 설치하기 위해 Homebrew를 사용할 때 발생했습니다. 동일한 문제가있는 사람은이를 제거하거나 충돌이있는 곳을 찾아야합니다)

export ANDROID_EMULATOR_DEBUG=1 test20

emulator:Found AVD name 'test20'
emulator:Found AVD target architecture: x86
emulator:Looking for emulator-x86 to emulate 'x86' CPU
emulator:Probing program: ./emulator-x86
emulator:Probing path for: emulator-x86
emulator:Found target-specific emulator binary: /usr/local/bin/emulator-x86
emulator:Probing for: /usr/local/bin/libOpenglRender.dylib
emulator:Probing for: /usr/local/bin/lib/libOpenglRender.dylib
emulator:Probing for: /usr/local/lib/libOpenglRender.dylib
emulator:Probing for: /usr/local/bin/lib64OpenglRender.dylib
emulator:Probing for: /usr/local/bin/lib/lib64OpenglRender.dylib
emulator:Probing for: /usr/local/lib/lib64OpenglRender.dylib
emulator:Could not find OpenGLES emulation host libraries!
emulator: ERROR: This AVD's configuration is missing a kernel file!!

emulator -avd test21
emulator:Found AVD name 'test21'
emulator:Found AVD target architecture: x86_64
emulator:Looking for emulator backend for x86_64 CPU
emulator:Probing program: ./emulator-x86_64
emulator:Probing path for: emulator-x86_64
emulator:Looking for emulator-x86 to emulate 'x86_64' CPU
emulator:Probing program: ./emulator-x86
emulator:Probing path for: emulator-x86
PANIC: Missing emulator engine program for 'x86_64' CPUS.

Homebrew 관련 문제를 해결 한 후 :

나는 조금 주위를 시도하고 이것을 발견했다.

emulator64-x86 -avd test20
Creating filesystem with parameters:
    Size: 69206016
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 4224
    Inode size: 256
    Journal blocks: 1024
    Label: 
    Blocks: 16896
    Block groups: 1
    Reserved block group size: 7
Created filesystem with 11/4224 inodes and 1302/16896 blocks
emulator: ERROR: Could not load OpenGLES emulation library: dlopen(lib64OpenglRender.dylib, 1): image not found
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
HAX is working and emulator runs in fast virt mode
qemu: could not load PC BIOS 'bios.bin'

동일한 문제가있는 모든 사람에게 다음 단계가 도움이 될 수 있습니다.

에뮬레이터를 디버그 모드에서 실행하십시오.

export ANDROID_EMULATOR_DEBUG=1 emulatorName

이상하게 보이는 경로가 있으면 Homebrew와 같은 다른 설치를 확인하고 충돌을 제거하십시오 (하나를 제거하십시오).

라이브러리가 없으면 변수를 내 보내야합니다.

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ANDROID_HOME/tools/lib

오류 “qemu : PC BIOS ‘bios.bin’을 (를)로드 할 수 없습니다”오류가 표시되면 전체 경로로 에뮬레이터를 실행하는 것입니다.

/Applications/Android\ Studio.app/sdk/tools/emulator64-x86 -avd test20
In your case it is maybe a other path.


답변

macOS를 사용하는 경우 Android SDK emulatortools디렉토리를 모두 경로에 추가하십시오.

1 단계 : 내 경우 순서에서 먼저 중요 emulator하고 tools.

export ANDROID_SDK=$HOME/Library/Android/sdk
export PATH=$ANDROID_SDK/emulator:$ANDROID_SDK/tools:$PATH

2 단계 : 다시로드 .bash_profile하거나 .bashrcOS에 따라

3 단계 : 사용 가능한 에뮬레이터 목록 가져 오기 :
$emulator -list-avds

4 단계 : 명령 줄에서 에뮬레이터를 시작하고 에뮬레이터 avd이름으로 교체$emulator @avd

@심볼 을 추가하는 것을 잊지 마십시오 .

이것은 macOS High Sierra 10.13.4 및 Android Studio 3.1.2에서 테스트되었습니다.


답변

Android Studio를 3.2로 업그레이드하고 일부 SDK 패키지를 업그레이드 한 후에도이 문제가 발생했습니다.

에뮬레이터의 경로가 변경되었으므로 ...../Android/Sdk/tools/emulator대신 사용하지 마십시오 ....../Android/Sdk/emulator/emulator.


답변

에뮬레이터-x86을 시작하는 다음 해결 방법이 저에게 효과적이었습니다.

cd $SDK/tools;
ln -s emulator64-x86 emulator-x86

또는 Windows에서 명령 프롬프트 열기 (관리자)

cd %ANDROID_SDK_ROOT%\tools
mklink emulator64-x86.exe emulator-x86.exe

이제 에뮬레이터가 SDK 관리자에서 시작됩니다.

참고 : 에뮬레이터 emulators는 최신 버전의 폴더에 있습니다.


답변

Android SDK folder/ 내에있는 에뮬레이터 폴더로 이동하십시오.emulator

cd ${ANDROID_HOME}/emulator

그런 다음 Android Studio없이 에뮬레이터를 열려면 다음 명령을 입력하십시오.

$ ./emulator -list-avds
$ ./emulator -avd Nexus_5X_API_28_x86

Nexus_5X_API_28_x86 내 AVD입니다. AVD 이름을 지정해야합니다.


답변

Windows 10, 5.29.18의 경우 :

promt 명령을 사용하여 방금 에뮬레이터 디렉토리에 있습니다.

cd C:\Android\sdk\emulator

그런 다음 명령을 입력하십시오.

emulator -avd Nexus_S_API_27

Nexus_S_API_27 내 사용자 정의 에뮬레이터의 이름입니다.

Othewize는 남용합니다 :

PANIC: Missing emulator engine program for 'x86' CPU.

답변

Android Studio IDE android-studio-ide-173.4907809-mac.dmg를 설치하고 studio SDK 관리자를 사용하여 SDK 도구를 설치 한 후 Mac에서

사용하여 PATH에 추가 ~/.profile또는 ~/.bash_profile있는지 당신이 만드는 $ANDROID_HOME/emulator당신의 $PATH이전 $ANDROID_HOME/tools과 같이 :

export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools

alias androidemulator='emulator -avd Nexus_5X_API_28_x86'

답변

명명 된 emulator이진 파일 이 두 개 있습니다. $SDK/tools/emulator다른 아래 에 위치$SDK/emulator/

  • 올바른 에뮬레이터가 구성되어 있는지 확인하십시오 ( $SDK/emulatorenv PATH에 추가해야 함)

avd 목록을 호출하는 데 도움이되는 스크립트를 작성했습니다

    #!/bin/bash -e


    echo "--- $# $(PWD)"
    HOME_CURRENT=$(PWD)
    HOME_EMULATOR=/Users/pcao/Library/Android/sdk/emulator

    if [ "$#" -eq 0 ]
    then
        echo "ERROR pls try avd 23 or avd 28 "
    fi

    if [ "$1" = "23" ]
    then
        echo "enter 23"
        cd $HOME_EMULATOR
        ./emulator -avd Nexus_5_API_23_Android6_ &
        cd $HOME_CURRENT
    fi

    if [ "$1" = "28" ]
    then
        echo "enter 28"
        cd $HOME_EMULATOR
        ./emulator -avd Nexus_5_API_28_GooglePlay_ &
        cd $HOME_CURRENT
    fi