From 359d0c04bac5986f959cde7f0e7570742608cadf Mon Sep 17 00:00:00 2001 From: deal Date: Fri, 28 Jan 2022 14:53:36 +0800 Subject: [PATCH] [ci] Install openjdk17 for android build --- tools/unix-ci/before-install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/unix-ci/before-install.sh b/tools/unix-ci/before-install.sh index 7145a9de42..f2a2aa2dac 100755 --- a/tools/unix-ci/before-install.sh +++ b/tools/unix-ci/before-install.sh @@ -10,6 +10,13 @@ CURL="curl --retry 999 --retry-max-time 0" function install_android_sdk() { + # the since openjdk is free, refer to: https://openjdk.java.net/ + # download page: https://jdk.java.net/17/ + echo "Installing openjdk17 ..." + curl https://download.java.net/java/GA/jdk17.0.2/dfd4a8d0985749f896bed50d7138ee7f/8/GPL/openjdk-17.0.2_linux-x64_bin.tar.gz -o ./openjdk-17.0.2_linux-x64_bin.tar.gz + tar xzvf openjdk-17.0.2_linux-x64_bin.tar.gz + export JAVA_HOME=`pwd`/jdk-17.0.2 + echo "Installing android ndk ..." # sudo curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py # sudo python get-pip.py