File tree Expand file tree Collapse file tree 2 files changed +24
-12
lines changed Expand file tree Collapse file tree 2 files changed +24
-12
lines changed Original file line number Diff line number Diff line change 12
12
set -ex
13
13
14
14
NDK=android-ndk-r19c
15
- API=26
16
15
curl --retry 10 -O https://dl.google.com/android/repository/${NDK} -linux-x86_64.zip
17
16
unzip -q ${NDK} -linux-x86_64.zip
18
17
19
18
case " $1 " in
19
+ arm)
20
+ arch=arm
21
+ api=25
22
+ ;;
23
+ armv7)
24
+ arch=arm
25
+ api=25
26
+ ;;
20
27
aarch64)
21
28
arch=arm64
29
+ api=25
22
30
;;
23
-
24
31
i686)
25
32
arch=x86
33
+ api=28
34
+ ;;
35
+ x86_64)
36
+ arch=x86_64
37
+ api=28
26
38
;;
27
-
28
39
* )
29
- arch=$1
40
+ echo " invalid arch: $1 "
41
+ exit 1
30
42
;;
31
43
esac ;
32
44
33
45
${NDK} /build/tools/make_standalone_toolchain.py \
34
46
--install-dir " /android/ndk-${1} " \
35
47
--arch " ${arch} " \
36
- --api ${API }
48
+ --api ${api }
37
49
38
50
rm -rf ./${NDK} -linux-x86_64.zip ./${NDK}
Original file line number Diff line number Diff line change @@ -19,26 +19,26 @@ set -ex
19
19
# which apparently magically accepts the licenses.
20
20
21
21
SDK=4333796
22
- API=26
22
+ API=25
23
23
mkdir sdk
24
24
curl --retry 10 https://dl.google.com/android/repository/sdk-tools-linux-${SDK} .zip -O
25
25
unzip -d sdk sdk-tools-linux-${SDK} .zip
26
26
27
27
case " $1 " in
28
28
arm | armv7)
29
- abi= armeabi-v7a
29
+ image=system-images ; android-25 ; google_apis ; armeabi-v7a
30
30
;;
31
31
32
32
aarch64)
33
- abi= arm64-v8a
33
+ image=system-images ; android-25 ; google_apis ; arm64-v8a
34
34
;;
35
35
36
36
i686)
37
- abi= x86
37
+ image=system-images ; android-28 ; default ; x86
38
38
;;
39
39
40
40
x86_64)
41
- abi= x86_64
41
+ image=system-images ; android-28 ; default ; x86_64
42
42
;;
43
43
44
44
* )
@@ -63,9 +63,9 @@ yes | ./sdk/tools/bin/sdkmanager --no_https \
63
63
" emulator" \
64
64
" platform-tools" \
65
65
" platforms;android-${API} " \
66
- " system-images;android- ${API} ;default; $abi "
66
+ " ${image} "
67
67
68
68
echo " no" |
69
69
./sdk/tools/bin/avdmanager create avd \
70
70
--name " ${1} " \
71
- --package " system-images;android- ${API} ;default; $abi "
71
+ --package " ${image} "
You can’t perform that action at this time.
0 commit comments