Skip to content

Commit e1ea140

Browse files
Use ABI-dependent versions
1 parent c465458 commit e1ea140

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

ci/android-install-sdk.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ unzip -d sdk "$ANDROID_SDK_ARCHIVE"
2727

2828
case "$1" in
2929
arm | armv7)
30-
abi=armeabi-v7a
30+
version="android-24"
31+
abi="armeabi-v7a"
3132
;;
3233

3334
aarch64)
34-
abi=arm64-v8a
35+
version="android-31"
36+
abi="arm64-v8a"
3537
;;
3638

3739
i686)
@@ -60,10 +62,10 @@ yes | "$ANDROID_SDK_BIN/sdkmanager" --licenses --no_https
6062
yes | "$ANDROID_SDK_BIN/sdkmanager" --no_https \
6163
"emulator" \
6264
"platform-tools" \
63-
"platforms;android-24" \
64-
"system-images;android-24;default;$abi"
65+
"platforms;$version" \
66+
"system-images;$version;default;$abi"
6567

6668
echo "no" |
6769
"$ANDROID_SDK_BIN/avdmanager" create avd \
6870
--name "${1}" \
69-
--package "system-images;android-24;default;$abi"
71+
--package "system-images;$version;default;$abi"

0 commit comments

Comments
 (0)