https://kotlinlang.org logo
#android
Title
# android
g

Gaurav

03/30/2020, 12:43 PM
Any one doing ui testing? I am trying to run emulator on jenkins(aws ec2) , it giving me error also can we run x86 emulator on jenkins?
w

wasyl

03/30/2020, 1:11 PM
Running emulator directly on the machine vs within a container is somewhat different. So you can either provision some Jenkins nodes that run on the bare metal, or you can look into running Android emulator on a virtual machine. For example here: https://github.com/google/android-emulator-container-scripts the docs state
KVM must be available. You can get access to KVM by running on “bare metal”, or on a (virtual) machine that provides nested virtualization.
and later on that in AWS you should use bare metal instance. Here https://github.com/budtmo/docker-android the docs suggest using
--priviledged
flag which I recall is something that should enable nested virtualization
g

Gaurav

03/30/2020, 3:20 PM
I am trying on without metal device. Arm emulator is getting booted but later its get hang. Adb command gives error or timeout
What most of the guys use for CI/CD container or actual machine/aws metal
w

wasyl

03/30/2020, 3:32 PM
Arm emulator is getting booted
Won’t x86 emulators be faster? Or they wouldn’t work for some reason?
g

Gaurav

03/30/2020, 3:52 PM
Yeah x86 is faster but current container is without kvm support
Even Travis doesn't support kvm
9 Views