-
Notifications
You must be signed in to change notification settings - Fork 290
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
32 bit or 64 bit Emulator #16
Comments
Hi @akarsh, i haven't used the emulator in this image at all, but please give some feedback if you figure it out! |
I got to the point, where I'm installing required packages and starting the emulator: androidTests:
stage: test
script:
- apt-get -qq update && apt-get install -qqy --no-install-recommends qemu-kvm && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
- /sdk/tools/bin/sdkmanager --verbose 'system-images;android-25;google_apis;x86_64'
- echo "no" | /sdk/tools/bin/avdmanager create avd -f -n api25 -k 'system-images;android-25;google_apis;x86_64' -d "pixel" -c 128M
- echo "no" | /sdk/tools/emulator -avd api25 -wipe-data -noaudio -no-window -gpu off -verbose -qemu -vnc :2 &
- timeout 180 /sdk/platform-tools/adb wait-for-device
- ./gradlew cAT --stacktrace Unfortunately, shared runners on gitlab.com seem to have KVM disabled in BIOS, so I end up with the following error:
|
Thanks for the feedback, i'll try that out when i have some time, that's probably quite useful for some people. |
GitLab.com shared runners run on Digital Ocean: From: https://about.gitlab.com/2016/04/05/shared-runners/
Which seems to have support for KVM. From:
From: https://wiki.archlinux.org/index.php/KVM
Seems like GitLab shared runners are not configured to load the kernel modules that add kvm support Similar issue: https://forum.gitlab.com/t/cannot-run-android-emulator-avd-in-gitlab-ci/11620 Work in progress: |
Hi @jangrewe @sczerwinski,
|
Solutions to this would be greatly appreciated. But this seems to be in the hands of gitlab and their shared runners: |
I hate to resurrect old threads like this, but since it is still open, I thought I'd share this. Since March 2019, the emulator can now run in Docker with headless mode: https://developer.android.com/studio/releases/emulator#headless-build |
Hi @jangrewe ,
I used the docker image for testing the gitlab-ci.
Have you tried functional tests in gitlab-ci for any android project ?
I tried to use
android-sdk-linux/tools/emulator -avd test -no-window -no-audio
I ended up with errors of 32 bit.
If you have tried emulator 64 bit
emulator64-x86
?The text was updated successfully, but these errors were encountered: