I use Jenkins to build one of my projects. The Android Emulator Plugin automatically starts an emulator with the following configuration:
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.