Я пытаюсь запустить Android-эмулятор с помощью AVD Manager. это мой avd: http://image-upload.de/image/fnx79V/52b0d050ee.png
и это происходит при запуске:
http://image-upload.de/image/vGpQfa/e912d83939.png
У меня есть Macbook Pro Retina. Установлен драйвер Haxm напрямую с Intel.
Эмулятор не работает. Все получают одно и то же сообщение об ошибке.
Running Command (Эта ошибка произошла, когда я использовал Homebrew для установки Android-sdk и Android-инструментов для платформы; любой, кто получит ту же проблему, должен удалить это или посмотреть, где находится конфликт)
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 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: не удалось загрузить BIOS BIOS" bios.bin ", появляется одно исправление для запуска эмулятора с полным путем:
/Applications/Android\ Studio.app/sdk/tools/emulator64-x86 -avd test20
In your case it is maybe a other path.