Reverts changelist 506335783

PiperOrigin-RevId: 619350353
This commit is contained in:
Fergus Henderson 2024-03-26 16:43:03 -07:00 committed by TensorFlower Gardener
parent 9fd1dc32fe
commit aaa5de3fb7
2 changed files with 2 additions and 2 deletions

View File

@ -759,7 +759,7 @@ def get_ndk_api_level(environ_cp, android_ndk_home_path):
android_ndk_api_level = prompt_loop_or_load_from_env( android_ndk_api_level = prompt_loop_or_load_from_env(
environ_cp, environ_cp,
var_name='ANDROID_NDK_API_LEVEL', var_name='ANDROID_NDK_API_LEVEL',
var_default='26', # 26 is required to support AHardwareBuffer. var_default='21', # 21 is required for ARM64 support.
ask_for_var=( ask_for_var=(
'Please specify the (min) Android NDK API level to use. ' 'Please specify the (min) Android NDK API level to use. '
'[Available levels: %s]' '[Available levels: %s]'

View File

@ -137,7 +137,7 @@ in the `.tf_configure.bazelrc` file in the root folder:
```shell ```shell
build --action_env ANDROID_NDK_HOME="/usr/local/android/android-ndk-r25b" build --action_env ANDROID_NDK_HOME="/usr/local/android/android-ndk-r25b"
build --action_env ANDROID_NDK_API_LEVEL="26" build --action_env ANDROID_NDK_API_LEVEL="21"
build --action_env ANDROID_BUILD_TOOLS_VERSION="30.0.3" build --action_env ANDROID_BUILD_TOOLS_VERSION="30.0.3"
build --action_env ANDROID_SDK_API_LEVEL="30" build --action_env ANDROID_SDK_API_LEVEL="30"
build --action_env ANDROID_SDK_HOME="/usr/local/android/android-sdk-linux" build --action_env ANDROID_SDK_HOME="/usr/local/android/android-sdk-linux"