Why is Jenkins Android Emulator Plugin recreating my Emulator Snapshots in every build?

后端 未结 2 1224
生来不讨喜
生来不讨喜 2021-02-01 07:32

I use Jenkins to build one of my projects. The Android Emulator Plugin automatically starts an emulator with the following configuration:

2条回答
  •  离开以前
    2021-02-01 07:35

    A bug was introduced in SDK Tools r20, whereby trying to list the available snapshots (via the emulator -snapshot-list command) would result in a crash.

    Since the command crashes without listing the available snapshots, the Android Emulator Plugin believes that there are no existing snapshots, which causes a new snapshot to be created in every build.

    I discovered that these crashes only occur with certain versions of the emulator application, i.e. it is possible to avoid the crash.

    Thankfully, the Jenkins plugin lets you select the emulator binary to run.

    So you can work around this problem by going into your job configuration, pressing Advanced… in the emulator config and selecting the "emulator-arm" (or another) binary.

提交回复
热议问题