-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037 #45
Comments
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... |
ReactiveCircus/android-emulator-runner#45 Signed-off-by: mueller-ma <mueller-ma@users.noreply.github.com>
Closing now. Let me know if you need more help! |
Yes, that helped. Thanks! |
Unfortunately this is not something I have control: as soon as the emulator is booted the environment is handed over to your 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. |
* Trial and error - add instrumented tests to CI * Trial and error - add instrumented tests to CI Setup AVD * Trial and error - add instrumented tests to CI Fix action version * Try API level 27 for AVD ReactiveCircus/android-emulator-runner#45 * Try API level 29 for AVD on macos-latest image ReactiveCircus/android-emulator-runner#45 * Explicitly watch instrumented test fail * Fix instrumented tests and prepare merge into master
I created a workflow to run emulator tests, but the actions fails.
The text was updated successfully, but these errors were encountered: