Android Emulator Timeout Error

android

#1

Hi,

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:

machine:
    java:
        version: 'oraclejdk8'

dependencies:
    pre:
        - ( 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"

test:
    post:
        - 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.


#2

We are experiencing the same issue.


#3

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


#4

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


#5

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.


#6