aerokube / images

Browser images for Selenoid and Moon 1.x
https://aerokube.com/images/latest/
Apache License 2.0
173 stars 128 forks source link

Android Emulator Containers with Google Play Services #332

Open jaysonabilar opened 3 years ago

jaysonabilar commented 3 years ago

Hi, May I know if there is someone that was able to build a custom emulator image with google play services? Because I'm currently encountering the same issue with this :

https://github.com/aerokube/selenoid/issues/1022

I followed the same details that he/she inputted but I still not able to create a session on the image. I tried to display the logs on the container and these are the logs.

Waiting X server... Waiting X server... Logging to: /tmp/fluxbox.log Waiting X server... Waiting X server... Waiting X server... Waiting X server... Waiting X server... Waiting X server...

--- x11vnc loop: 1 ---

daemon not running; starting now at tcp:5037 daemon started successfully adb: no devices/emulators found --- x11vnc loop: waiting for: 63 PORT=5900 adb: no devices/emulators found adb: no devices/emulators found adb: no devices/emulators found adb: no devices/emulators found adb: no devices/emulators found adb: no devices/emulators found adb: no devices/emulators found handleCpuAcceleration: feature check for hvf cannot add library /opt/android-sdk-linux/emulator/qemu/linux-x86_64/lib64/vulkan/libvulkan.so: failed added library /opt/android-sdk-linux/emulator/lib64/vulkan/libvulkan.so cannot add library /opt/android-sdk-linux/emulator/lib64/vulkan/libvulkan.so.1: full adb: no devices/emulators found WARNING. Using fallback path for the emulator registration directory. emulator: WARNING: System image is writable emulator: WARNING: userdata partition is resized from 500 M to 800 M

emulator: INFO: GrpcServices.cpp:288: Started GRPC server at 127.0.0.1:8554, security: Local Your emulator is out of date, please update by launching Android Studio:

Start Android Studio Select menu "Tools > Android > SDK Manager" Click "SDK Tools" tab Check "Android Emulator" checkbox Click "OK" adb: device offline adb: device offline adb: device offline adb: device offline adb: device offline adb: device offline adb: device offline adb: device offline adb: device offline adb: device offline adb: device offline adb: device offline adb: device offline adb: device offline adb: device offline

utajaraj commented 3 years ago

For the emulator you are trying to open, do as follows: open android studio, go to configure > AVD Manager > edit change emulated pereformance to Software - GLES