deploy to android works now.

This commit is contained in:
Thomas Güttler
2026-04-27 08:44:42 +02:00
parent 2c3802b2d9
commit d2226388d7
3 changed files with 21 additions and 0 deletions
+14
View File
@@ -17,3 +17,17 @@ Git repo should not contain unknown files.
Then commit.
## Tasks
fix:
[6ms] no emulator running — booting AVD sharedinbox_test
Emulator did not become ready within 120 s
task: Failed to run task "deploy-android": task: Failed to run task "integration-android": exit status 1
Why does the emulator not start? Where are the logs?
After that: task deploy-android
fix, if it fails.
---
+4
View File
@@ -38,6 +38,10 @@ ADB=$(command -v adb 2>/dev/null || echo "${ANDROID_HOME:-$HOME/Android/Sdk}/pla
exit 1
}
# Ensure adb daemon is running before querying/starting the emulator; without it
# the emulator cannot register and adb devices always returns empty.
"$ADB" start-server >/dev/null 2>&1 || true
# Detect a connected Android emulator; auto-start the sharedinbox_test AVD if none is running.
EMULATOR_ID=$("$ADB" devices | awk '/^emulator-[0-9]+[[:space:]]+device$/ {print $1; exit}')
if [ -z "$EMULATOR_ID" ]; then
+3
View File
@@ -12,6 +12,9 @@ ADB=$(command -v adb 2>/dev/null || echo "${ANDROID_HOME:-$HOME/Android/Sdk}/pla
exit 1
}
# Ensure adb daemon is running before querying/starting the emulator.
"$ADB" start-server >/dev/null 2>&1 || true
EMULATOR_ID=$("$ADB" devices | awk '/^emulator-[0-9]+[[:space:]]+device$/ {print $1; exit}')
if [ -z "$EMULATOR_ID" ]; then
EMULATOR_BIN="${ANDROID_HOME:-$HOME/Android/Sdk}/emulator/emulator"