AVDManager not going to next step on workflow

Description of the issue

My workflow starts with AVDManager, and when it get “emulator: INFO: boot completed” it stuck and not go to the next step

Build URL: https://app.bitrise.io/build/c36ea69d319508b9

Which build Step causes the issue and which version of the step?



  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : NO
  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : NO
  • Does the issue happen sporadically, or every time? : every time
  • Does upgrading the build Step to the latest version help? : NO
  • When did the issue start? :

Hello there!

There are issues with the avd manager indeed.

I recommend changing the stack to the LTS one, remove avd manager and use this custom script to start the emulator.

#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
#set -x

cd $ANDROID_HOME/emulator

echo no | avdmanager create avd -n Nexus_5X_API_26 -k "system-images;android-26;google_apis;x86" --force

emulator -avd Nexus_5X_API_26 -no-window -no-audio -debug-init > /dev/null 2>&1 &

echo "Waiting emulator is ready..."

adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done; input keyevent 82'

echo "Emulator is ready!"
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.