Comments (5)
from android-emulator-runner.
Unfortunately on Linux API 28 and API 29 emulators are extremely slow to boot. In fact I've never seen an API 29 emulator booted successfully on Linux.
As mentioned in this issue, if you have to use Linux VM, you are probably limited to API 27 or below where startup times are still reasonable.
I know this is a disappointment but this is not something I have control...
from android-emulator-runner.
Closing now. Let me know if you need more help!
from android-emulator-runner.
Yes, that helped. Thanks!
Now I'm getting these "couldn't find root view in 10 seconds" on API 27. I had these issue from time to time on Travis with a 22 emulator, so I tried 22. Now the action runs for over 3h and fails: https://github.com/openhab/openhab-android/runs/553253033
from android-emulator-runner.
Unfortunately this is not something I have control: as soon as the emulator is booted the environment is handed over to your script
.
In general if you are using Linux VM, you'll get little benefits over other CI solution (perhaps other than easier configuration and less scripting) as there's no hardware acceleration on Linux (KVM not enabled).
While you can sort of have some emulators running without hardware acceleration, in practice you really need hardware acceleration enabled to run the Android Emulator, period. The emulator should just not start at all and throw an error if it can't be hardware-accelerated.
To give you (and everyone using linux VMs) a bit of context, I created this action solely to take advantage of hardware acceleration support on the macos VM and never intended to add Linux support cause I know it won't be a good experience (at least not better than what you already have) without hardware acceleration.
I wrote this article about running Android emulator on CI which should give you more context on running instrumentation tests on CI in general.
As an alternative you could look at Cirrus CI which provides KVM-enabled Linux VMs and pricing seems pretty reasonable (100% free for opensource projects). I wrote a long article going over all the features relevant to Android and how you can optimize your pipeline etc. I also created some templates to help you get started.
from android-emulator-runner.
Related Issues (20)
- Failed to open the device 'kvm': No such file or directory HOT 2
- Deprecation warning for use of Node 16 HOT 1
- Automatically support KVM on Linux HOT 4
- Android SDK API 29 constant timeout after successful run (also sometimes 26 and 28) HOT 5
- Platform not found
- Cannot get arm64 emulator up and running on ubuntu-latest HOT 1
- UniversalExceptionRaise: (os/kern) failure (5)
- Cannot get arm64-v8a emulator up and running on macos UniversalExceptionRaise: (os/kern) failure (5)
- Job hangs after UI testing is terminated
- Runner action hangs after killing emulator with stop: not implemented HOT 3
- `PANIC: Avd's CPU Architecture 'arm64' is not supported by the QEMU2 emulator on x86_64 host.` HOT 3
- Failed to install split APK(s) HOT 2
- adb cannot connect on ubuntu-latest today HOT 1
- Allow multiline scripts
- Emulator fails to start with `arch: arm64-v8a` + `target: google_apis` running API 34 HOT 6
- Starting a Chrome browser in Android emulator caused abortion HOT 3
- Instrumentation tests are skipped with JUnit 5 HOT 3
- Error changing dalvik-cache ownership : Permission denied
- no devices/emulators found HOT 3
- Feature request: Add setting to stop the action from downloading sdk tools HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-emulator-runner.