Skip to content

Commit 8aaa830

Browse files
committed
Vagrant: make Android dev box script more robust
When the oor-dev-android box is shut down and then started up again, running the SDK install script again fails at the creation of the AVD. Force recreating it if the script is run, so that the script doesn't fail and we get a clean environment. Signed-off-by: Lorand Jakab <lojakab@cisco.com>
1 parent 158b37e commit 8aaa830

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vagrant/install-android-sdk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ $ANDROID_SDK_ROOT/tools/bin/sdkmanager "build-tools;${BUILD_TOOLS_VERSION}"
5656
echo "Downloading and installing Google APIs System Image for ${EMU_ABI} ABI"
5757
$ANDROID_SDK_ROOT/tools/bin/sdkmanager "${ANDROID_SYSTEM_IMAGE}"
5858
echo "Creating Nexus 5X API ${EMU_API} ${EMU_ABI} Android Virtual Device (AVD)"
59-
$ANDROID_SDK_ROOT/tools/bin/avdmanager create avd --tag "${EMU_TAG}" --package "${ANDROID_SYSTEM_IMAGE}" --name "Nexus_5X_API_${EMU_API}_${EMU_ABI}" --abi $EMU_ABI --device "Nexus 5X"
59+
$ANDROID_SDK_ROOT/tools/bin/avdmanager create avd --force --tag "${EMU_TAG}" --package "${ANDROID_SYSTEM_IMAGE}" --name "Nexus_5X_API_${EMU_API}_${EMU_ABI}" --abi $EMU_ABI --device "Nexus 5X"
6060

6161
# Install Android Emulator dependencies
6262
sudo apt-get -y -q install libpulse0 libglu1-mesa

0 commit comments

Comments
 (0)