open-wa / wa-avd-docker

A Docker image based on Ubuntu Desktop with VNC and noVNC access, that runs a lightweight Android Virtual Device with WhatsApp pre-installed.
https://hub.docker.com/r/yodascholtz/docker-android-whatsapp-avd/
Other
135 stars 41 forks source link

Android Emulator Does Not Start #11

Open PedroPretto opened 4 years ago

PedroPretto commented 4 years ago

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!

smashah commented 4 years ago

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

PedroPretto commented 4 years ago

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
dviluk commented 4 years ago

"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 commented 4 years ago

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