Android Emulator Timeout Error


Suddenly started getting time out errors on my Android emulator. More specifcally on the circle-android wait-for-boot where it looks like it’s timing out after 2 hours.

Here is my circle.yml:

        version: 'oraclejdk8'

        - ( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | android update sdk --no-ui --all --filter "tools,platform-tools,android-25,extra-google-m2repository,extra-android-m2repository,extra-android-support"
        - echo y | android update sdk --no-ui --all --filter "build-tools-25.0.1"

        - emulator -avd circleci-android23 -no-audio -no-window:
            background: true
            parallel: true
        - circle-android wait-for-boot
        - adb shell input keyevent 82
        - ./gradlew connectedAndroidTest:
            timeout: 600000

I don’t believe I changed anything that would cause this timeout and old builds that succeeded have these time out errors as well.

1 Like

We are experiencing the same issue.

Removing the -no-audio flag allows the emulator to boot eventually.

1 Like

That still doesn’t work for me. Do you mind sharing your circle.yml file?

Looks like you are using the Android 23 emulator, is that the version that is specified in your circle.yml? Just wanted to double-check, as there is an open issue where the Android 24 emulator does not boot.