Skip to content

Commit f8096fe

Browse files
fix: avd set
1 parent c33f579 commit f8096fe

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.maestro/scripts/setup-android-emulator.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ if [ -z "$ANDROID_HOME" ]; then
2020
exit 1
2121
fi
2222

23+
# Ensure avdmanager and emulator use the same AVD directory regardless of
24+
# what ANDROID_SDK_HOME is set to on the host (e.g. GitHub Actions runners).
25+
export ANDROID_AVD_HOME="$HOME/.android/avd"
26+
mkdir -p "$ANDROID_AVD_HOME"
27+
2328
for tool in sdkmanager avdmanager emulator adb; do
2429
if ! command -v "$tool" &>/dev/null; then
2530
echo "Error: '$tool' not found. Ensure Android SDK tools are installed and in PATH."

0 commit comments

Comments
 (0)