wa-avd-docker icon indicating copy to clipboard operation
wa-avd-docker copied to clipboard

Android Emulator Does Not Start

Open PedroPretto opened this issue 4 years ago • 4 comments

Hi guys,

I'm running the docker-compose on Debian 9, and although the virtual environment does start, the android emulator doesn't.

I tried to run the command suggested in the Code session: ${ANDROID_HOME}/tools/emulator @Pixel -gpu off

But I had the following result:

venv (1)

I also tried to run the start-avd.sh, and obtained the following result: venv2

And for last, I tried the entrypoint.sh script, but this happened: venv3

Although I noticed that there already is an issue about this last script.

Am I not doing it properly?

Hope I provided all the needed information. Thanks guys!

PedroPretto avatar May 13 '20 14:05 PedroPretto

@PedroPretto can you try this fork and let me know if works thanks https://github.com/juliowerner/wa-avd-docker

smashah avatar May 13 '20 15:05 smashah

Had the same result, then I ran the following command: ${ANDROID_HOME}/tools/bin/avdmanager create avd -n Pixel -k "system-images;android-26;google_apis;x86" -c 2000M

The first problem was solved, but still can't run the start-avd.sh, having the error below:

emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure KVM is properly installed and usable.
CPU acceleration status: KVM requires a CPU that supports vmx or svm
More info on configuring VM acceleration on Linux:
https://developer.android.com/studio/run/emulator-acceleration#vm-linux
General information on acceleration: https://developer.android.com/studio/run/emulator-acceleration.

adb: no devices/emulators found
Installing WhatsApp
Performing Push Install
adb: error: failed to get feature set: no devices/emulators found
adb: no devices/emulators found

PedroPretto avatar May 14 '20 14:05 PedroPretto

"emulator: ERROR: x86 emulation currently requires hardware acceleration!"

@PedroPretto check this https://help.ubuntu.com/community/KVM/Installation if you are in ubuntu (HOST). Or in windows install Intel HAXM (if you have Intel)

NOTE: Some CPUs does not support Hardware Acceleration

dviluk avatar May 23 '20 04:05 dviluk

i think you can run an ARM emulator instead of x86 emulator.

dviluk avatar May 23 '20 04:05 dviluk