Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Emulator Does Not Start #11

Open
PedroPretto opened this issue May 13, 2020 · 4 comments
Open

Android Emulator Does Not Start #11

PedroPretto opened this issue May 13, 2020 · 4 comments

Comments

@PedroPretto
Copy link

PedroPretto commented May 13, 2020

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
Copy link
Member

smashah commented May 13, 2020

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

@PedroPretto
Copy link
Author

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
Copy link

dviluk commented May 23, 2020

"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
Copy link

dviluk commented May 23, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants