Skip to content

Commit

Permalink
Fix emulator avd searchpath
Browse files Browse the repository at this point in the history
Copied from setup_avd.sh script
  • Loading branch information
peace-maker committed Oct 11, 2024
1 parent 24adb30 commit 2d46f5a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion travis/setup_avd_fast.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -ex

env

# Grab prerequisites
# Valid ABIs:
# - armeabi-v7a
Expand All @@ -10,10 +12,12 @@ set -ex
# - x86_64
ANDROID_ABI='x86_64'
ANDROIDV=android-34
export ANDROID_AVD_HOME="$HOME/.android/avd"
mkdir -p "$ANDROID_AVD_HOME"

# Create our emulator Android Virtual Device (AVD)
# --snapshot flag is deprecated, see bitrise-steplib/steps-create-android-emulator#18
export PATH=$PATH:"$ANDROID_HOME"/cmdline-tools/latest/bin:"$ANDROID_HOME"/platform-tools
export PATH=$PATH:"$ANDROID_HOME"/cmdline-tools/latest/bin:"$ANDROID_HOME"/platform-tools:"$ANDROID_HOME"/emulator
yes | sdkmanager --sdk_root="$ANDROID_HOME" --install "system-images;$ANDROIDV;default;$ANDROID_ABI" "emulator" "platform-tools" "platforms;$ANDROIDV"
yes | sdkmanager --sdk_root="$ANDROID_HOME" --licenses
echo no | avdmanager --verbose create avd --name android-$ANDROID_ABI --force --abi "default/$ANDROID_ABI" --package "system-images;$ANDROIDV;default;$ANDROID_ABI"
Expand Down

0 comments on commit 2d46f5a

Please sign in to comment.