Giter VIP home page Giter VIP logo

Comments (5)

ychescale9 avatar ychescale9 commented on June 18, 2024 1

#46

from android-emulator-runner.

ychescale9 avatar ychescale9 commented on June 18, 2024

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.

ychescale9 avatar ychescale9 commented on June 18, 2024

Closing now. Let me know if you need more help!

from android-emulator-runner.

mueller-ma avatar mueller-ma commented on June 18, 2024

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.

ychescale9 avatar ychescale9 commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.