Skip to main content
All CollectionsKnowledge BaseGeneral issues
Failed to boot emulator device (AVD)
Failed to boot emulator device (AVD)
Updated over 4 months ago

Issue:

The AVD Manager Step fails with the following error:

**Failed to boot emulator device within 300 seconds.**

Possible solutions:

if you are experiencing problems with the AVD Manager Step, we recommend using a Script Step with the following script instead:

#!/usr/bin/env bash# fail if any commands fails
set -e# debug log
set -x# write your script here
sudo $ANDROID_HOME/tools/bin/sdkmanager --update
$ANDROID_HOME/tools/bin/sdkmanager --install "emulator"
$ANDROID_HOME/tools/bin/sdkmanager --install "system-images;android-29;google_apis;x86"
echo "no" | $ANDROID_HOME/tools/bin/avdmanager --verbose create avd --force --name "pixel" --device "pixel" --package "system-images;android-29;google_apis;x86" --tag "google_apis" --abi "x86"
$ANDROID_HOME/emulator/emulator-headless @pixel -no-boot-anim -netdelay none -no-snapshot -wipe-data -verbose -show-kernel -no-audio -gpu swiftshader_indirect -no-snapshot &> /tmp/log.txt &
sleep 160
Did this answer your question?