Skip to content

Commit

Permalink
use cmdline-tools for sdkmanager + avdmanager
Browse files Browse the repository at this point in the history
  • Loading branch information
supervacuus authored Nov 5, 2024
1 parent a74796f commit de1bd42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/start-android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ AVD_EMULATOR_NAME="sentry_android_${ARCH}"
IMAGE=${ANDROID_IMAGE:-"system-images;android-${API_LEVEL};google_apis;${ARCH}"}

echo "List installed images"
$ANDROID_HOME/tools/bin/sdkmanager --list | grep "system-images" | grep "Installed"
$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --list | grep "system-images" | grep "Installed"

# Create an Android Virtual Device
echo "Create Test AVDs with..."
echo "ARCH = $ARCH"
echo "API_LEVEL = $API_LEVEL"
echo "AVD_EMULATOR_NAME = $AVD_EMULATOR_NAME"
echo "IMAGE = $IMAGE"
echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n $AVD_EMULATOR_NAME -k "$IMAGE" --force
echo "no" | $ANDROID_HOME/cmdline-tools/latest/bin/avdmanager create avd -n $AVD_EMULATOR_NAME -k "$IMAGE" --force

echo "List available AVDs..."
$ANDROID_HOME/emulator/emulator -list-avds
Expand Down

0 comments on commit de1bd42

Please sign in to comment.