Skip to content

Commit 81af90d

Browse files
committed
Fix android ci
1 parent a3b89db commit 81af90d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/unix-ci/setup_android.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def install_android_sdk():
102102
packages = [
103103
'platform-tools',
104104
'cmdline-tools;latest',
105-
'platforms;android-28',
106-
'build-tools;29.0.2',
105+
'platforms;android-33',
106+
'build-tools;33.0.0',
107107
'cmake;3.22.1',
108108
'ndk;' + NDK_VER
109109
]
@@ -116,11 +116,13 @@ def export_environment(ndk_only):
116116
with open(os.path.join(ROOT_DIR, "environment.sh"), "a") as myfile:
117117
if not ndk_only:
118118
myfile.write("export ANDROID_SDK=" + ANDROID_SDK + "\n")
119+
myfile.write("export ANDROID_HOME=" + ANDROID_SDK + "\n")
119120
myfile.write("export ANDROID_NDK=" + ANDROID_NDK + "\n")
120121

121122
with open(os.path.join(ROOT_DIR, "environment.ps1"), "a") as myfile:
122123
if not ndk_only:
123124
myfile.write("$env:ANDROID_SDK=\"" + ANDROID_SDK + "\"\n")
125+
myfile.write("$env:ANDROID_HOME=\"" + ANDROID_SDK + "\"\n")
124126
myfile.write("$env:ANDROID_NDK=\"" + ANDROID_NDK + "\"\n")
125127

126128
def main(ndk_only):

0 commit comments

Comments
 (0)