Skip to content

Commit 52f262f

Browse files
authored
Upgrade Android NDK version (#789)
* Upgrade Android NDK version * Increase NDK API LEVEL
1 parent 394d826 commit 52f262f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
if: steps.cache.outputs.cache-hit != 'true'
3737
run: ./third_party/install_android.sh
3838
- name: Configure Bazel
39-
run: LCE_SET_ANDROID_WORKSPACE=1 ANDROID_SDK_HOME="/tmp/lce_android" ANDROID_NDK_HOME="/tmp/lce_android/ndk/19.2.5345600" ./configure.py
39+
run: LCE_SET_ANDROID_WORKSPACE=1 ANDROID_SDK_HOME="/tmp/lce_android" ANDROID_NDK_HOME="/tmp/lce_android/ndk/21.4.7075529" ./configure.py
4040
shell: bash
4141
- run: mkdir benchmark-binaries
4242
- name: Build Benchmark utility for AArch64
@@ -108,7 +108,7 @@ jobs:
108108
if: steps.cache.outputs.cache-hit != 'true'
109109
run: ./third_party/install_android.sh
110110
- name: Configure Bazel
111-
run: LCE_SET_ANDROID_WORKSPACE=1 ANDROID_SDK_HOME="/tmp/lce_android" ANDROID_NDK_HOME="/tmp/lce_android/ndk/19.2.5345600" ./configure.py
111+
run: LCE_SET_ANDROID_WORKSPACE=1 ANDROID_SDK_HOME="/tmp/lce_android" ANDROID_NDK_HOME="/tmp/lce_android/ndk/21.4.7075529" ./configure.py
112112
shell: bash
113113
- name: Build LCE AAR
114114
run: BUILDER=bazelisk ./larq_compute_engine/tflite/java/build_lce_aar.sh

.github/workflows/unittests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ jobs:
150150
if: steps.cache.outputs.cache-hit != 'true'
151151
run: ./third_party/install_android.sh
152152
- name: Configure Bazel
153-
run: LCE_SET_ANDROID_WORKSPACE=1 ANDROID_SDK_HOME="/tmp/lce_android" ANDROID_NDK_HOME="/tmp/lce_android/ndk/19.2.5345600" ./configure.py
153+
run: LCE_SET_ANDROID_WORKSPACE=1 ANDROID_SDK_HOME="/tmp/lce_android" ANDROID_NDK_HOME="/tmp/lce_android/ndk/21.4.7075529" ./configure.py
154154
shell: bash
155155
- name: Build LCE AAR
156156
run: BUILDER=bazelisk ./larq_compute_engine/tflite/java/build_lce_aar.sh

configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ def valid_api_level(api_level):
586586
android_ndk_api_level = prompt_loop_or_load_from_env(
587587
environ_cp,
588588
var_name="ANDROID_NDK_API_LEVEL",
589-
var_default="21", # 21 is required for ARM64 support.
589+
var_default='26', # 26 is required to support AHardwareBuffer.
590590
ask_for_var=(
591591
"Please specify the (min) Android NDK API level to use. "
592592
"[Available levels: %s]"

third_party/install_android.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export ANDROID_SDK_URL="https://dl.google.com/android/repository/sdk-tools-linux
99
export ANDROID_HOME="/tmp/lce_android"
1010
export ANDROID_VERSION=29
1111
export ANDROID_BUILD_TOOLS_VERSION=30.0.2
12-
export ANDROID_NDK_VERSION=19.2.5345600
12+
export ANDROID_NDK_VERSION=21.4.7075529
1313

1414
# download android SDK
1515
mkdir -p $ANDROID_HOME; cd $ANDROID_HOME;

0 commit comments

Comments
 (0)