TFLite Select OPS aar build failed
I cleaned Bazel by running "bazel clean --expunge".
Then the download warning didn't display anymore.
But the build failed with the same error.
I checked "dx.jar" and it doesn't exist though.
### Issue type

Build/Install

### Have you reproduced the bug with TensorFlow Nightly?

No

### Source

source

### TensorFlow version

tf 2.12

### Custom code

No

### OS platform and distribution

Windows 10

### Mobile device

_No response_

### Python version

Python 3.11.9

### Bazel version

5.3.0

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

The TFLite model I use in my Android project must use TF Select OPS aar.
So, I would like to reduce its size. Then, I tried to follow the [Set up build environment using Docker](https://www.tensorflow.org/lite/android/lite_build#set_up_build_environment_using_docker) link.
But the build fails while running tensorflow/lite/tools/build_aar.sh.
I note that some downloads got 404 responses. But I don't know if it's causing that issue.

Could you please help me?
Thanks.

### Standalone code to reproduce the issue

```shell
1. Run Docker build:

	docker build . -t tflite-builder -f tflite-android.Dockerfile
	
2. Run Docker container:
	
	docker run -it -v $PWD:/host_dir tflite-builder bash

3. Run SDK manager command:

	sdkmanager \
	  "build-tools;${ANDROID_BUILD_TOOLS_VERSION}" \
	  "platform-tools" \
	  "platforms;android-${ANDROID_API_LEVEL}"

4. Run ./configure:

	Please input the desired Python library path to use.  Default is [/usr/lib/python3/dist-packages]
	/usr/local/lib/python3.11/dist-packages
	Do you wish to build TensorFlow with ROCm support? [y/N]: N
	No ROCm support will be enabled for TensorFlow.

	Do you wish to build TensorFlow with CUDA support? [y/N]: N
	No CUDA support will be enabled for TensorFlow.

	Do you wish to download a fresh release of clang? (Experimental) [y/N]: N
	Clang will not be downloaded.

	Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -Wno-sign-compare]:


	Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]: y
	
2. Run build_aar.sh:

	bash tensorflow/lite/tools/build_aar.sh   --input_models=model.tflite   --target_archs=x86,x86_64,arm64-v8a,armeabi-v7a
```


### Relevant log output

```shell
+++ dirname tensorflow/lite/tools/build_aar.sh
++ cd tensorflow/lite/tools
++ pwd
+ SCRIPT_DIR=/tflite/tensorflow_src/tensorflow/lite/tools
++ cd /tflite/tensorflow_src/tensorflow/lite/tools/../../../
++ pwd
+ ROOT_DIR=/tflite/tensorflow_src
+ TARGET_ARCHS=x86,x86_64,arm64-v8a,armeabi-v7a
+ '[' '!' -z ']'
+ '[' 2 -gt 4 ']'
+ for i in "$@"
+ case $i in
+ FLAG_MODELS=model.tflite
+ shift
+ for i in "$@"
+ case $i in
+ TARGET_ARCHS=x86,x86_64,arm64-v8a,armeabi-v7a
+ shift
+ cd /tflite/tensorflow_src
+ '[' '!' -f /tflite/tensorflow_src/.tf_configure.bazelrc ']'
+ grep -q ANDROID_SDK_HOME /tflite/tensorflow_src/.tf_configure.bazelrc
+ '[' -z model.tflite ']'
+ TMP_DIR=/tflite/tensorflow_src/tmp/
+ rm -rf /tflite/tensorflow_src/tmp/
+ mkdir -p /tflite/tensorflow_src/tmp/
+ MODEL_NAMES=
++ echo model.tflite
++ sed 's/,/ /g'
+ for model in $(echo ${FLAG_MODELS} | sed "s/,/ /g")
+ cp model.tflite /tflite/tensorflow_src/tmp/
++ basename model.tflite
+ MODEL_NAMES=,model.tflite
+ TFLITE_OPS_SRCS=
++ echo
++ sed 's/,/ /g'
+ generate_tflite_aar
+ pushd /tflite/tensorflow_src/tmp/
+ message=('load("//tensorflow/lite:build_def.bzl", "tflite_custom_android_library")' 'load("//tensorflow/lite/java:aar_with_jni.bzl", "aar_with_jni")' '' 'tflite_custom_android_library(' '    name = "custom_tensorflowlite",')
+ message+=('    '$(generate_list_field "models" $MODEL_NAMES))
++ generate_list_field models ,model.tflite
++ local name=models
++ local list_string=,model.tflite
++ list=('model.tflite')
++ local list
++ message=('models=[')
++ local message
++ for item in "${list[@]}"
++ message+=("\"$item\",")
++ message+=('],')
++ printf %s 'models=[' '"model.tflite",' '],'
+ message+=('    '$(generate_list_field "srcs" $TFLITE_OPS_SRCS))
++ generate_list_field srcs
++ local name=srcs
++ local list_string=
++ list=()
++ local list
++ message=('srcs=[')
++ local message
++ message+=('],')
++ printf %s 'srcs=[' '],'
+ message+=('    '$(generate_list_field "deps" $FLAG_TFLITE_OPS_DEPS))
++ generate_list_field deps
++ local name=deps
++ local list_string=
++ list=()
++ local list
++ message=('deps=[')
++ local message
++ message+=('],')
++ printf %s 'deps=[' '],'
+ message+=(')' '' 'aar_with_jni(' '    name = "tensorflow-lite",' '    android_library = ":custom_tensorflowlite",' ')' '')
+ printf '%s\n' 'load("//tensorflow/lite:build_def.bzl", "tflite_custom_android_library")' 'load("//tensorflow/lite/java:aar_with_jni.bzl", "aar_with_jni")' '' 'tflite_custom_android_library(' '    name = "custom_tensorflowlite",' '    models=["model.tflite",],' '    srcs=[],' '    deps=[],' ')' '' 'aar_with_jni(' '    name = "tensorflow-lite",' '    android_library = ":custom_tensorflowlite",' ')' ''
+ popd
+ bazel build -c opt --cxxopt=--std=c++17 --fat_apk_cpu=x86,x86_64,arm64-v8a,armeabi-v7a --define=xnn_enable_arm_fp16=false --host_crosstool_top=@bazel_tools//tools/cpp:toolchain //tmp:tensorflow-lite
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=209
INFO: Reading rc options for 'build' from /tflite/tensorflow_src/.bazelrc:
  Inherited 'common' options: --experimental_repo_remote_exec
INFO: Reading rc options for 'build' from /etc/bazel.bazelrc:
  'build' options: --action_env=DOCKER_CACHEBUSTER=1716682492038080941 --host_action_env=DOCKER_HOST_CACHEBUSTER=1716682492110646903
INFO: Reading rc options for 'build' from /tflite/tensorflow_src/.bazelrc:
  'build' options: --define framework_shared_object=true --define tsl_protobuf_header_only=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone -c opt --announce_rc --define=grpc_no_ares=true --noincompatible_remove_legacy_whole_archive --enable_platform_specific_config --define=with_xla_support=true --config=short_logs --config=v2 --define=no_aws_support=true --define=no_hdfs_support=true --experimental_cc_shared_library --experimental_link_static_libraries_once=false --incompatible_enforce_config_setting_visibility
INFO: Reading rc options for 'build' from /tflite/tensorflow_src/.tf_configure.bazelrc:
  'build' options: --action_env PYTHON_BIN_PATH=/usr/bin/python --action_env PYTHON_LIB_PATH=/usr/local/lib/python3.11/dist-packages --python_path=/usr/bin/python --action_env ANDROID_NDK_HOME=/android/ndk --action_env ANDROID_NDK_API_LEVEL=21 --action_env ANDROID_BUILD_TOOLS_VERSION=31.0.0 --action_env ANDROID_SDK_API_LEVEL=23 --action_env ANDROID_SDK_HOME=/android/sdk
INFO: Reading rc options for 'build' from /tflite/tensorflow_src/.bazelrc:
  'build' options: --deleted_packages=tensorflow/compiler/mlir/tfrt,tensorflow/compiler/mlir/tfrt/benchmarks,tensorflow/compiler/mlir/tfrt/jit/python_binding,tensorflow/compiler/mlir/tfrt/jit/transforms,tensorflow/compiler/mlir/tfrt/python_tests,tensorflow/compiler/mlir/tfrt/tests,tensorflow/compiler/mlir/tfrt/tests/ir,tensorflow/compiler/mlir/tfrt/tests/analysis,tensorflow/compiler/mlir/tfrt/tests/jit,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_tfrt,tensorflow/compiler/mlir/tfrt/tests/lhlo_to_jitrt,tensorflow/compiler/mlir/tfrt/tests/tf_to_corert,tensorflow/compiler/mlir/tfrt/tests/tf_to_tfrt_data,tensorflow/compiler/mlir/tfrt/tests/saved_model,tensorflow/compiler/mlir/tfrt/transforms/lhlo_gpu_to_tfrt_gpu,tensorflow/core/runtime_fallback,tensorflow/core/runtime_fallback/conversion,tensorflow/core/runtime_fallback/kernel,tensorflow/core/runtime_fallback/opdefs,tensorflow/core/runtime_fallback/runtime,tensorflow/core/runtime_fallback/util,tensorflow/core/tfrt/eager,tensorflow/core/tfrt/eager/backends/cpu,tensorflow/core/tfrt/eager/backends/gpu,tensorflow/core/tfrt/eager/core_runtime,tensorflow/core/tfrt/eager/cpp_tests/core_runtime,tensorflow/core/tfrt/gpu,tensorflow/core/tfrt/run_handler_thread_pool,tensorflow/core/tfrt/runtime,tensorflow/core/tfrt/saved_model,tensorflow/core/tfrt/graph_executor,tensorflow/core/tfrt/saved_model/tests,tensorflow/core/tfrt/tpu,tensorflow/core/tfrt/utils
INFO: Found applicable config definition build:short_logs in file /tflite/tensorflow_src/.bazelrc: --output_filter=DONT_MATCH_ANYTHING
INFO: Found applicable config definition build:v2 in file /tflite/tensorflow_src/.bazelrc: --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1
INFO: Found applicable config definition build:linux in file /tflite/tensorflow_src/.bazelrc: --host_copt=-w --copt=-Wno-all --copt=-Wno-extra --copt=-Wno-deprecated --copt=-Wno-deprecated-declarations --copt=-Wno-ignored-attributes --copt=-Wno-array-bounds --copt=-Wunused-result --copt=-Werror=unused-result --copt=-Wswitch --copt=-Werror=switch --copt=-Wno-error=unused-but-set-variable --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include --define=PROTOBUF_INCLUDE_PATH=$(PREFIX)/include --cxxopt=-std=c++17 --host_cxxopt=-std=c++17 --config=dynamic_kernels --distinct_host_configuration=false --experimental_guard_against_concurrent_changes
INFO: Found applicable config definition build:dynamic_kernels in file /tflite/tensorflow_src/.bazelrc: --define=dynamic_loaded_kernels=true --copt=-DAUTOLOAD_DYNAMIC_KERNELS
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/10939d1d580b9d3c9c2f3539c6bdb39f408179c0.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/tensorflow/runtime/archive/91d765cad5599f9710973d3e34d4dc22583e2e79.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e.tar.gz failed: class java.io.FileNotFoundException GET returned 404 Not Found
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/XNNPACK/archive/659147817805d17c7be2d60bd7bbca7e780f9c82.zip failed: class java.io.FileNotFoundException GET returned 404 Not Found
INFO: Analyzed target //tmp:tensorflow-lite (1 packages loaded, 32 targets configured).
INFO: Found 1 target...
ERROR: /root/.cache/bazel/_bazel_root/9b2f34fb77985aeef7d030c85de5771e/external/androidsdk/BUILD.bazel:13:25: Extracting interface @androidsdk//:dx_jar_import failed: missing input file 'external/androidsdk/build-tools/31.0.0/lib/dx.jar', owner: '@androidsdk//:build-tools/31.0.0/lib/dx.jar'
ERROR: /root/.cache/bazel/_bazel_root/9b2f34fb77985aeef7d030c85de5771e/external/androidsdk/BUILD.bazel:13:25: Extracting interface @androidsdk//:dx_jar_import failed: 1 input file(s) do not exist
Target //tmp:tensorflow-lite failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: /root/.cache/bazel/_bazel_root/9b2f34fb77985aeef7d030c85de5771e/external/androidsdk/BUILD.bazel:13:25 Extracting interface @androidsdk//:dx_jar_import failed: 1 input file(s) do not exist
INFO: Elapsed time: 0.446s, Critical Path: 0.02s
INFO: 10 processes: 10 internal.
FAILED: Build did NOT complete successfully
```
