Android エミュレータのエラー メッセージ: 「パニック: 'x86' CPU のエミュレータ エンジン プログラムが見つかりません。」 質問する

Android エミュレータのエラー メッセージ: 「パニック: 'x86' CPU のエミュレータ エンジン プログラムが見つかりません。」 質問する

AVD マネージャーを使用して Android エミュレーターを実行しようとしています。Macbook Pro Retina を使用しています。Intel ページから直接 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などの他のインストールをチェックして競合を削除します(1つをアンインストールします)。

ライブラリが見つからない場合は、変数をエクスポートする必要があります。

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

「qemu: PC BIOS 'bios.bin' をロードできませんでした」というエラーが表示された場合、エミュレータをフルパスで実行することが 1 つの解決策です。

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

ベストアンサー1

macOS を使用している場合は、Android SDKemulatortoolsディレクトリの両方をパスに追加します。

ステップ 1:emulator私の場合、最初に、次に という順序が重要でしたtools

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

ステップ2: OSに応じて.bash_profileリロードする.bashrc

ステップ 3:利用可能なエミュレータのリストを取得します。$emulator -list-avds

ステップ4:コマンドラインからエミュレータを起動し、avdエミュレータの名前に置き換えます$emulator @avd

シンボルを追加することを忘れないでください@

これは、macOS High Sierra 10.13.4 および Android Studio 3.1.2 でテストされました。

おすすめ記事