diff --git a/BUILDING.md b/BUILDING.md index d38ba8453..e9597b087 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -13,8 +13,8 @@ cd bazel build pkg ``` -> :warning: We currently use NDK r21 to have access to the unified Khronos -> validation layer. Bazel 2.0.0 has no official support for r21, so **the +> :warning: We currently use NDK r21d to have access to the unified Khronos +> validation layer. Bazel 2.0.0 has no official support for r21d, so **the > following build warning is expected and can be ignored:** > > ``` @@ -86,7 +86,7 @@ tools\bin\sdkmanager.bat platform-tools ``` Unzip the -[Android NDK **r21**](https://dl.google.com/android/repository/android-ndk-r21-windows-x86_64.zip) +[Android NDK **r21d**](https://dl.google.com/android/repository/android-ndk-r21d-windows-x86_64.zip) into a directory of your choosing, and set the `ANDROID_NDK_HOME` environment variable to point to this directory. @@ -153,7 +153,7 @@ tools/bin/sdkmanager platform-tools ``` Unzip the -[Android NDK **r21**](https://dl.google.com/android/repository/android-ndk-r21-darwin-x86_64.zip) +[Android NDK **r21d**](https://dl.google.com/android/repository/android-ndk-r21d-darwin-x86_64.zip) into a directory of your choosing, and set the `ANDROID_NDK_HOME` environment variable to point to this directory: @@ -229,7 +229,7 @@ tools/bin/sdkmanager platform-tools ``` Unzip the -[Android NDK **r21**](https://dl.google.com/android/repository/android-ndk-r21-linux-x86_64.zip) +[Android NDK **r21d**](https://dl.google.com/android/repository/android-ndk-r21d-linux-x86_64.zip) into a directory of your choosing, and set the `ANDROID_NDK_HOME` environment variable to point to this directory: diff --git a/kokoro/linux/build.sh b/kokoro/linux/build.sh index 958fc41c1..c466d4ec4 100755 --- a/kokoro/linux/build.sh +++ b/kokoro/linux/build.sh @@ -33,9 +33,9 @@ sudo apt-get -qy install gcc-8 g++-8 export CC=/usr/bin/gcc-8 # Get the Android NDK -curl -L -k -O -s https://dl.google.com/android/repository/android-ndk-r21-linux-x86_64.zip -unzip -q android-ndk-r21-linux-x86_64.zip -export ANDROID_NDK_HOME=$PWD/android-ndk-r21 +curl -L -k -O -s https://dl.google.com/android/repository/android-ndk-r21d-linux-x86_64.zip +unzip -q android-ndk-r21d-linux-x86_64.zip +export ANDROID_NDK_HOME=$PWD/android-ndk-r21d # Get recent build tools echo y | $ANDROID_HOME/tools/bin/sdkmanager --install 'build-tools;29.0.2' diff --git a/kokoro/macos/build.sh b/kokoro/macos/build.sh index 51928a7e6..4ba586106 100755 --- a/kokoro/macos/build.sh +++ b/kokoro/macos/build.sh @@ -24,10 +24,10 @@ curl -L -k -O -s https://dl.google.com/android/repository/tools_r25.2.3-macosx.z mkdir android unzip -q tools_r25.2.3-macosx.zip -d android echo y | ./android/tools/bin/sdkmanager build-tools\;29.0.2 platforms\;android-26 -curl -L -k -O -s https://dl.google.com/android/repository/android-ndk-r21-darwin-x86_64.zip -unzip -q android-ndk-r21-darwin-x86_64.zip -d android +curl -L -k -O -s https://dl.google.com/android/repository/android-ndk-r21d-darwin-x86_64.zip +unzip -q android-ndk-r21d-darwin-x86_64.zip -d android export ANDROID_HOME=$PWD/android -export ANDROID_NDK_HOME=$PWD/android/android-ndk-r21 +export ANDROID_NDK_HOME=$PWD/android/android-ndk-r21d # Get the JDK and JRE from our mirror. This needs to be after the Android updates above (needs 1.8). JDK_BUILD=zulu11.39.15-ca diff --git a/kokoro/windows/build.bat b/kokoro/windows/build.bat index ee7739396..c1a9c682d 100644 --- a/kokoro/windows/build.bat +++ b/kokoro/windows/build.bat @@ -33,11 +33,10 @@ REM Install Android SDK platform, build tools and NDK setlocal call %ANDROID_HOME%\tools\bin\sdkmanager.bat platforms;android-26 build-tools;29.0.2 endlocal -echo on -wget -q https://dl.google.com/android/repository/android-ndk-r21-windows-x86_64.zip -unzip -q android-ndk-r21-windows-x86_64.zip -set ANDROID_NDK_HOME=%CD%\android-ndk-r21 +wget -q https://dl.google.com/android/repository/android-ndk-r21d-windows-x86_64.zip +unzip -q android-ndk-r21d-windows-x86_64.zip +set ANDROID_NDK_HOME=%CD%\android-ndk-r21d REM Install WiX Toolset. wget -q https://github.com/wixtoolset/wix3/releases/download/wix311rtm/wix311-binaries.zip diff --git a/tools/build/rules/android.bzl b/tools/build/rules/android.bzl index 311e54832..e20ca836a 100644 --- a/tools/build/rules/android.bzl +++ b/tools/build/rules/android.bzl @@ -139,7 +139,7 @@ ndk_vk_validation_layer = repository_rule( # Enforce NDK version by checking $ANDROID_NDK_HOME/source.properties def _ndk_version_check(repository_ctx): # This should be updated in sync with BUILDING.md documentation - expectedVersion = "21.0.6113669" + expectedVersion = "21.3.6528147" # Extract NDK version string from $ANDROID_NDK_HOME/source.properties, # which has the following format: