Releases: android/ndk
NDK r29 beta 1
Downloads
android {
ndkVersion "29.0.13113456"
}
Platform | Package | Size (Bytes) | SHA1 Checksum |
---|---|---|---|
Windows | android-ndk-r29-beta1-windows.zip | 821548547 | 90347ffa01dd1833b9ff116865958976fd66c264 |
macOS | android-ndk-r29-beta1-darwin.dmg | 1131541755 | b3a8e0d8147de981478c8edefe4036440910ee46 |
Linux | android-ndk-r29-beta1-linux.zip | 773995428 | ec2d8801e42009edf66be853c1bab9ba216378f9 |
Changelog
Report issues to GitHub.
For Android Studio issues, go to https://b.android.com and file a bug using the
Android Studio component, not the NDK component.
If you're a build system maintainer that needs to use the tools in the NDK
directly, see the build system maintainers guide.
Announcements
Changes
- Updated LLVM to clang-r547379. See
clang_source_info.md
in the toolchain
directory for version information. - ndk-stack will now find symbols in files with matching build IDs even if the
file names do not match. - ndk-stack will now find symbols in files with matching build IDs even if the
name of the file is not present in the trace. - Issue 2078: ndk-stack now accepts a native-debug-symbols.zip file for the
--sym
argument as an alternative to a directory.
NDK r28
Downloads
android {
ndkVersion "28.0.13004108"
}
Platform | Package | Size (Bytes) | SHA1 Checksum |
---|---|---|---|
Windows | android-ndk-r28-windows.zip | 748943210 | f79a00c721dc5c15b2bf093d7bb2af96496a42b2 |
macOS | android-ndk-r28-darwin.dmg | 1047230704 | ee3fbd3fc29b2133990aeb352494ac63e114c53e |
Linux | android-ndk-r28-linux.zip | 723148067 | 894f469c5192a116d21f412de27966140a530ebc |
Changelog
Report issues to GitHub.
For Android Studio issues, go to https://b.android.com and file a bug using the
Android Studio component, not the NDK component.
If you're a build system maintainer that needs to use the tools in the NDK
directly, see the build system maintainers guide.
Announcements
- The 16 KiB page size compatibility option that was added in r27 is now on by
default. If necessary, you can still opt-out (see below).
Changes
-
Updated LLVM to clang-r530567c. See
clang_source_info.md
in the toolchain
directory for version information.- Runtime libraries for non-Android have been removed reduce disk usage.
- libc++ now includes debug info to aid debugging. This may make
libc++_shared.so and any binaries that link libc++_static.a much larger
before they are stripped. The Android Gradle Plugin will strip binaries when
creating APKs, so this should not affect production apps. - Issue 2046: libclang and libclang-cpp are now supported.
-
PAGE_SIZE
is no longer defined by default for arm64-v8a or x86_64. To
re-enable, setAPP_SUPPORT_FLEXIBLE_PAGE_SIZES
(ndk-build) or
ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES
(CMake) to false. See Support 16 KB
page sizes for more information. -
The default alignment of shared libraries for arm64-v86 and x86_64 is now 16k.
To revert to 4k alignment, setAPP_SUPPORT_FLEXIBLE_PAGE_SIZES
(ndk-build)
orANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES
(CMake) to false. See Support 16 KB
page sizes for more information. -
Issue 1307: Removed non-NDK binder headers. A number of binder headers that
should have been shipped with aidl were mistakenly shipped in the NDK. These
headers are tightly coupled to the version of aidl used, so this introduced an
unwanted version restriction between build-tools and the NDK. If you are using
the NDK aidl backend, you will need to pass the aidl include path when
building. See the aidl backend docs for more information. -
Issue 2058: Weak API references now work for libc APIs. This was enabled
by conditionally removing the#if __ANDROID_API__ >= ...
guards that
previously wrapped declarations in libc headers when weak API references are
used. When weak API references are not used (the default behavior), the
declarations will still be hidden by the preprocessor.If your project contains polyfills for any of those APIs and uses weak API
references, this change may break your build due to the conflicting
declarations. The simplest fix is to rename your polyfill to not collide with
libc. For example, renameconflicting_api
toconflicting_api_fallback
and
call that instead. Use#define conflicting_api() conflicting_api_fallback()
if you want to avoid rewriting callsites.Please open a bug if you run into issues with existing polyfills. We may be
able to add the polyfill directly to the NDK. -
Issue 2100: Raised minimum required CMake version of the NDK's toolchain
file from 3.6.0 to 3.10.0 to address warnings from new versions of CMake about
upcoming loss of compatibility with versions older than 3.10.
NDK r28 RC 2
Downloads
android {
ndkVersion "28.0.12916984-rc2"
}
Platform | Package | Size (Bytes) | SHA1 Checksum |
---|---|---|---|
Windows | android-ndk-r28-beta3-windows.zip | 749041370 | 72e641edd8ef24b7b3c4935ac0b0340d87251450 |
macOS | android-ndk-r28-beta3-darwin.dmg | 1047255644 | d6158946def7554a999839e9530c8087d9339d7f |
Linux | android-ndk-r28-beta3-linux.zip | 723256962 | 69348e24577122339b3996d2ef1ac4e6f7f5d627 |
Changelog
Report issues to GitHub.
For Android Studio issues, go to https://b.android.com and file a bug using the
Android Studio component, not the NDK component.
If you're a build system maintainer that needs to use the tools in the NDK
directly, see the build system maintainers guide.
Announcements
- The 16 KiB page size compatibility option that was added in r27 is now on by
default. If necessary, you can still opt-out (see below).
Changes
-
Updated LLVM to clang-r530567c. See
clang_source_info.md
in the toolchain
directory for version information.- Runtime libraries for non-Android have been removed reduce disk usage.
- libc++ now includes debug info to aid debugging. This may make
libc++_shared.so and any binaries that link libc++_static.a much larger
before they are stripped. The Android Gradle Plugin will strip binaries when
creating APKs, so this should not affect production apps. - Issue 2046: libclang and libclang-cpp are now supported.
-
PAGE_SIZE
is no longer defined by default for arm64-v8a or x86_64. To
re-enable, setAPP_SUPPORT_FLEXIBLE_PAGE_SIZES
(ndk-build) or
ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES
(CMake) to false. See Support 16 KB
page sizes for more information. -
The default alignment of shared libraries for arm64-v86 and x86_64 is now 16k.
To revert to 4k alignment, setAPP_SUPPORT_FLEXIBLE_PAGE_SIZES
(ndk-build)
orANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES
(CMake) to false. See Support 16 KB
page sizes for more information. -
Issue 1307: Removed non-NDK binder headers. A number of binder headers that
should have been shipped with aidl were mistakenly shipped in the NDK. These
headers are tightly coupled to the version of aidl used, so this introduced an
unwanted version restriction between build-tools and the NDK. If you are using
the NDK aidl backend, you will need to pass the aidl include path when
building. See the aidl backend docs for more information. -
Issue 2058: Weak API references now work for libc APIs. This was enabled
by conditionally removing the#if __ANDROID_API__ >= ...
guards that
previously wrapped declarations in libc headers when weak API references are
used. When weak API references are not used (the default behavior), the
declarations will still be hidden by the preprocessor.If your project contains polyfills for any of those APIs and uses weak API
references, this change may break your build due to the conflicting
declarations. The simplest fix is to rename your polyfill to not collide with
libc. For example, renameconflicting_api
toconflicting_api_fallback
and
call that instead. Use#define conflicting_api() conflicting_api_fallback()
if you want to avoid rewriting callsites.Please open a bug if you run into issues with existing polyfills. We may be
able to add the polyfill directly to the NDK. -
Issue 2100: Raised minimum required CMake version of the NDK's toolchain
file from 3.6.0 to 3.10.0 to address warnings from new versions of CMake about
upcoming loss of compatibility with versions older than 3.10.
NDK r28 RC 1
Downloads
android {
ndkVersion "28.0.12674087"
}
Platform | Package | Size (Bytes) | SHA1 Checksum |
---|---|---|---|
Windows | android-ndk-r28-beta2-windows.zip | 746919470 | 410a9863a8c2559bd4bb1f29517ea525c41859ab |
macOS | android-ndk-r28-beta2-darwin.dmg | 1043488886 | 55cd6fdfb4c69866841650f1b25043643d1ee43f |
Linux | android-ndk-r28-beta2-linux.zip | 721452166 | 4b901eeb50a76ba521e4eb1e611cb43658b54440 |
Changelog
Report issues to GitHub.
For Android Studio issues, go to https://b.android.com and file a bug using the
Android Studio component, not the NDK component.
If you're a build system maintainer that needs to use the tools in the NDK
directly, see the build system maintainers guide.
Announcements
- The 16 KiB page size compatibility option that was added in r27 is now on by
default. If necessary, you can still opt-out (see below).
Changes
-
Updated LLVM to clang-r530567. See
clang_source_info.md
in the toolchain
directory for version information.- Runtime libraries for non-Android have been removed reduce disk usage.
- libc++ now includes debug info to aid debugging. This may make
libc++_shared.so and any binaries that link libc++_static.a much larger
before they are stripped. The Android Gradle Plugin will strip binaries when
creating APKs, so this should not affect production apps. - Issue 2046: libclang and libclang-cpp are now supported.
-
PAGE_SIZE
is no longer defined by default for arm64-v8a or x86_64. To
re-enable, setAPP_SUPPORT_FLEXIBLE_PAGE_SIZES
(ndk-build) or
ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES
(CMake) to false. See Support 16 KB
page sizes for more information. -
The default alignment of shared libraries for arm64-v86 and x86_64 is now 16k.
To revert to 4k alignment, setAPP_SUPPORT_FLEXIBLE_PAGE_SIZES
(ndk-build)
orANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES
(CMake) to false. See Support 16 KB
page sizes for more information. -
Issue 1307: Removed non-NDK binder headers. A number of binder headers that
should have been shipped with aidl were mistakenly shipped in the NDK. These
headers are tightly coupled to the version of aidl used, so this introduced an
unwanted version restriction between build-tools and the NDK. If you are using
the NDK aidl backend, you will need to pass the aidl include path when
building. See the aidl backend docs for more information. -
Issue 2058: Weak API references now work for libc APIs. This was enabled
by conditionally removing the#if __ANDROID_API__ >= ...
guards that
previously wrapped declarations in libc headers when weak API references are
used. When weak API references are not used (the default behavior), the
declarations will still be hidden by the preprocessor.If your project contains polyfills for any of those APIs and uses weak API
references, this change may break your build due to the conflicting
declarations. The simplest fix is to rename your polyfill to not collide with
libc. For example, renameconflicting_api
toconflicting_api_fallback
and
call that instead. Use#define conflicting_api() conflicting_api_fallback()
if you want to avoid rewriting callsites.Please open a bug if you run into issues with existing polyfills. We may be
able to add the polyfill directly to the NDK.
NDK r27c
Downloads
android {
ndkVersion "27.2.12479018"
}
Platform | Package | Size (Bytes) | SHA1 Checksum |
---|---|---|---|
Windows | android-ndk-r27c-windows.zip | 781511249 | ac5f7762764b1f15341094e148ad4f847d050c38 |
macOS | android-ndk-r27c-darwin.dmg | 921212233 | 04d8c43eb4e884c4b16bbf7733ac9179a13b7b20 |
Linux | android-ndk-r27c-linux.zip | 663987688 | 090e8083a715fdb1a3e402d0763c388abb03fb4e |
Changelog
Report issues to GitHub.
For Android Studio issues, go to https://b.android.com and file a bug using the
Android Studio component, not the NDK component.
If you're a build system maintainer that needs to use the tools in the NDK
directly, see the build system maintainers guide.
Announcements
-
Android V will allow OEMs to ship arm64-v8a devices with 16KiB page sizes.
Devices that use this configuration will not be able to run existing apps that
use native code. To be compatible with these devices, applications will need
to rebuild all their native code to be 16KiB aligned, and rewrite any code
which assumes a specific page size. ndk-build and CMake have options to enable
this mode (see note aboutAPP_SUPPORT_FLEXIBLE_PAGE_SIZES
and
ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES
below). A future version of the NDK will
enable this mode by default. If you're using or maintaining a third-party
build system, consult the build system maintainers guide for instructions.See Support 16 KB page sizes for more information.
r27c
- Updated LLVM to clang-r522817c. See
clang_source_info.md
in the toolchain
directory for version information.- Issue 2040: Further fixes for miscompiles of indirect gotos.
- Issue 2064: Fix HWAsan miscompilation.
- Issue 2070: Fix crash in instantiation of function definitions.
- Issue 2084: Fix for incorrect compiler error on overloaded member
functions with ref-qualifiers.
r27b
- Updated LLVM to clang-r522817b. See
clang_source_info.md
in the toolchain
directory for version information.- Issue 2040: Fixed miscompile with indirect gotos.
- Issue 2054: Fixed crash in x86 fp16 instruction selection.
- Issue 2059: Fixed infinite loop in aarch64 vector instruction selection.
- Issue 2032: Fixed compatibility issues with projects that used a very old
cmake_minimum_required
version ("Policy CMP0057 is not set: Support new
IN_LIST if() operator"). - Issue 2039: Fixed
LOCAL_STRIP_MODE
not being reset by
include $(CLEAR_VARS)
. - Issue 2049: Restored metadata used by CMake in non-toolchain-file use cases
that usedCMAKE_SYSTEM_PROCESSOR
instead ofCMAKE_ANDROID_ARCH_ABI
. If you
ran into this problem, you should switch to usingCMAKE_ANDROID_ARCH_ABI
because that's what CMake's docs say to use. Better still, use the NDK's
toolchain file.
Changes
- Updated LLVM to clang-r522817. See
clang_source_info.md
in the toolchain
directory for version information.- Issue 1728: Clang now emits an error for invalid Android target versions.
- Issue 1853:
clang-scan-deps
is now included. - Issue 1911: Fixed inconsistent
std::regex_replace
results. - Issue 1947: Improved support for AArch64 function multi-versioning in clang.
- Issue 1963: Fixed undefined behavior in
std::unexpected::has_value()
. - Issue 1988: Added aarch64 support for
preserve_all
calling convention. - Issue 2007: Fixed crash in class template argument deduction caused by
self-referential friend declaration. - Issue 2010: Removed superfluous libraries to reduce disk use.
- Issue 2012: Fixed front end crash when using concepts and modules.
- Issue 2013: Fixed false positive ODR violation in global module fragments.
- Issue 2023: Fixed Clang crashes related to lambda captures in unevaluated
contexts. - Issue 2024: Removed invalid
__attribute__((__const__))
fromgettid
.
- A RISC-V sysroot (AKA riscv64, or rv64) has been added. It is not
supported. It is present to aid bringup for OS vendors, but it's not yet a
supported Android ABI. It will not be built by default. - Issue 1856: Target-prefixed cmd wrappers for clang should now behave
appropriately when the first argument includes quotes. You probably do not
need to use those wrappers. In most cases where you would use
aarch64-linux-android21-clang
, you can instead useclang -target aarch64-linux-android21
, e.g.CC="clang -target aarch64-linux-android21" ./configure
. The wrappers are only needed when working with systems that do
not properly handle aCC
that includes arguments. - Issue 1898: ndk-stack now tolerates 0x prefixed addresses.
- Issue 1921:
ANDROID_USE_LEGACY_TOOLCHAIN_FILE
value is now preserved
during try-compile steps whenON
. - Issue 1974: Unintentionally shipped Vulkan headers have been removed from
sources/third_party/vulkan
. The standard Vulkan headers are included in the
Android sysroot, which Clang will find automatically. - Issue 1993: ndk-stack now tolerates invalid UTF-8 characters in the trace.
- Issue 1994: Fixed ndk-gdb/ndk-lldb to use the correct path for
make and other tools. - Added
APP_SUPPORT_FLEXIBLE_PAGE_SIZES
for ndk-build and
ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES
for CMake. Set to
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
in yourApplication.mk
or pass
-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON
to CMake (via
android.defaultConfig.externalNativeBuild.cmake.arguments
if you're using
the Android Gradle Plugin) to build your code to be compatible with devices
that use a 16KiB page size. Third-party build system users and maintainers
should consult the build system maintainers guide. - Symlinks are now properly preserved in the macOS App Bundle. The NDK installed
via that method is now the same size as the one installed via the SDK manager. - The unsupported libclang, libclang-cpp, libLLVM, and libLTO libraries were
removed to save space.
NDK r28 beta 1
Downloads
android {
ndkVersion "28.0.12433566"
}
Platform | Package | Size (Bytes) | SHA1 Checksum |
---|---|---|---|
Windows | android-ndk-r28-beta1-windows.zip | 746848976 | 97328457d44dceae79f1cf488684419e0fec851a |
macOS | android-ndk-r28-beta1-darwin.dmg | 892872146 | f51c4f49d6576106fb20b22b51694208c3157cff |
Linux | android-ndk-r28-beta1-linux.zip | 626833250 | 92dd6d941340624c4fc702ebc7e7cbd6faeb703d |
Changelog
Report issues to GitHub.
For Android Studio issues, go to https://b.android.com and file a bug using the
Android Studio component, not the NDK component.
If you're a build system maintainer that needs to use the tools in the NDK
directly, see the build system maintainers guide.
Announcements
- The 16 KiB page size compatibility option that was added in r27 is now on by
default. If necessary, you can still opt-out (see below).
Changes
-
Updated LLVM to clang-r530567. See
clang_source_info.md
in the toolchain
directory for version information.- Runtime libraries for non-Android have been removed reduce disk usage.
-
PAGE_SIZE
is no longer defined by default for arm64-v8a or x86_64. To
re-enable, setAPP_SUPPORT_FLEXIBLE_PAGE_SIZES
(ndk-build) or
ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES
(CMake) to false. See Support 16 KB
page sizes for more information. -
The default alignment of shared libraries for arm64-v86 and x86_64 is now 16k.
To revert to 4k alignment, setAPP_SUPPORT_FLEXIBLE_PAGE_SIZES
(ndk-build)
orANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES
(CMake) to false. See Support 16 KB
page sizes for more information. -
Issue 1307: Removed non-NDK binder headers. A number of binder headers that
should have been shipped with aidl were mistakenly shipped in the NDK. These
headers are tightly coupled to the version of aidl used, so this introduced an
unwanted version restriction between build-tools and the NDK. If you are using
the NDK aidl backend, you will need to pass the aidl include path when
building. See the aidl backend docs for more information. -
Issue 2058: Weak API references now work for libc APIs. This was enabled
by removing the explicit#if __ANDROID_API__ >= ...
guards that previously
wrapped declarations in libc headers.If your project contains polyfills for any of those APIs, this change may
break your build due to the conflicting declarations. The simplest fix is to
rename your polyfill to not collide with libc. For example, rename
conflicting_api
toconflicting_api_fallback
and call that instead. Use
#define conflicting_api() conflicting_api_fallback()
if you want to avoid
rewriting callsites.Please open a bug if you run into issues with existing polyfills. We may be
able to add the polyfill directly to the NDK.
NDK r27b
Downloads
android {
ndkVersion "27.1.12297006"
}
Platform | Package | Size (Bytes) | SHA1 Checksum |
---|---|---|---|
Windows | android-ndk-r27b-windows.zip | 781495902 | 3bb7efc850cd0af7707854b7e0d5c3b6a7153703 |
macOS | android-ndk-r27b-darwin.dmg | 921211770 | f8979ac0060742045209c742367f6bf5b88df796 |
Linux | android-ndk-r27b-linux.zip | 663976775 | 6fc476b2e57d7c01ac0c95817746b927035b9749 |
Changelog
Report issues to GitHub.
For Android Studio issues, go to https://b.android.com and file a bug using the
Android Studio component, not the NDK component.
If you're a build system maintainer that needs to use the tools in the NDK
directly, see the build system maintainers guide.
Announcements
-
Android V will allow OEMs to ship arm64-v8a devices with 16KiB page sizes.
Devices that use this configuration will not be able to run existing apps that
use native code. To be compatible with these devices, applications will need
to rebuild all their native code to be 16KiB aligned, and rewrite any code
which assumes a specific page size. ndk-build and CMake have options to enable
this mode (see note aboutAPP_SUPPORT_FLEXIBLE_PAGE_SIZES
and
ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES
below). A future version of the NDK will
enable this mode by default. If you're using or maintaining a third-party
build system, consult the build system maintainers guide for instructions.See Support 16 KB page sizes for more information.
r27b
- Updated LLVM to clang-r522817b. See
clang_source_info.md
in the toolchain
directory for version information.- Issue 2040: Fixed miscompile with indirect gotos.
- Issue 2054: Fixed crash in x86 fp16 instruction selection.
- Issue 2059: Fixed infinite loop in aarch64 vector instruction selection.
- Issue 2032: Fixed compatibility issues with projects that used a very old
cmake_minimum_required
version ("Policy CMP0057 is not set: Support new
IN_LIST if() operator"). - Issue 2039: Fixed
LOCAL_STRIP_MODE
not being reset by
include $(CLEAR_VARS)
. - Issue 2049: Restored metadata used by CMake in non-toolchain-file use cases
that usedCMAKE_SYSTEM_PROCESSOR
instead ofCMAKE_ANDROID_ARCH_ABI
. If you
ran into this problem, you should switch to usingCMAKE_ANDROID_ARCH_ABI
because that's what CMake's docs say to use. Better still, use the NDK's
toolchain file.
Changes
- Updated LLVM to clang-r522817. See
clang_source_info.md
in the toolchain
directory for version information.- Issue 1728: Clang now emits an error for invalid Android target versions.
- Issue 1853:
clang-scan-deps
is now included. - Issue 1911: Fixed inconsistent
std::regex_replace
results. - Issue 1947: Improved support for AArch64 function multi-versioning in clang.
- Issue 1963: Fixed undefined behavior in
std::unexpected::has_value()
. - Issue 1988: Added aarch64 support for
preserve_all
calling convention. - Issue 2007: Fixed crash in class template argument deduction caused by
self-referential friend declaration. - Issue 2010: Removed superfluous libraries to reduce disk use.
- Issue 2012: Fixed front end crash when using concepts and modules.
- Issue 2013: Fixed false positive ODR violation in global module fragments.
- Issue 2023: Fixed Clang crashes related to lambda captures in unevaluated
contexts. - Issue 2024: Removed invalid
__attribute__((__const__))
fromgettid
.
- A RISC-V sysroot (AKA riscv64, or rv64) has been added. It is not
supported. It is present to aid bringup for OS vendors, but it's not yet a
supported Android ABI. It will not be built by default. - Issue 1856: Target-prefixed cmd wrappers for clang should now behave
appropriately when the first argument includes quotes. You probably do not
need to use those wrappers. In most cases where you would use
aarch64-linux-android21-clang
, you can instead useclang -target aarch64-linux-android21
, e.g.CC="clang -target aarch64-linux-android21" ./configure
. The wrappers are only needed when working with systems that do
not properly handle aCC
that includes arguments. - Issue 1898: ndk-stack now tolerates 0x prefixed addresses.
- Issue 1921:
ANDROID_USE_LEGACY_TOOLCHAIN_FILE
value is now preserved
during try-compile steps whenON
. - Issue 1974: Unintentionally shipped Vulkan headers have been removed from
sources/third_party/vulkan
. The standard Vulkan headers are included in the
Android sysroot, which Clang will find automatically. - Issue 1993: ndk-stack now tolerates invalid UTF-8 characters in the trace.
- Issue 1994: Fixed ndk-gdb/ndk-lldb to use the correct path for
make and other tools. - Added
APP_SUPPORT_FLEXIBLE_PAGE_SIZES
for ndk-build and
ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES
for CMake. Set to
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
in yourApplication.mk
or pass
-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON
to CMake (via
android.defaultConfig.externalNativeBuild.cmake.arguments
if you're using
the Android Gradle Plugin) to build your code to be compatible with devices
that use a 16KiB page size. Third-party build system users and maintainers
should consult the build system maintainers guide. - Symlinks are now properly preserved in the macOS App Bundle. The NDK installed
via that method is now the same size as the one installed via the SDK manager. - The unsupported libclang, libclang-cpp, libLLVM, and libLTO libraries were
removed to save space.
NDK r27
Downloads
android {
ndkVersion "27.0.12077973"
}
Platform | Package | Size (Bytes) | SHA1 Checksum |
---|---|---|---|
Windows | android-ndk-r27-windows.zip | 781482169 | 0ea2756e6815356831bda3af358cce4cdb6a981e |
macOS | android-ndk-r27-darwin.dmg | 921198814 | b06865a3655b41ae53b2e589908bcf90080e3650 |
Linux | android-ndk-r27-linux.zip | 663957918 | 5e5cd517bdb98d7e0faf2c494a3041291e71bdcc |
Changelog
Report issues to GitHub.
For Android Studio issues, go to https://b.android.com and file a bug using the
Android Studio component, not the NDK component.
If you're a build system maintainer that needs to use the tools in the NDK
directly, see the build system maintainers guide.
Announcements
-
Android V will allow OEMs to ship arm64-v8a devices with 16KiB page sizes.
Devices that use this configuration will not be able to run existing apps that
use native code. To be compatible with these devices, applications will need
to rebuild all their native code to be 16KiB aligned, and rewrite any code
which assumes a specific page size. ndk-build and CMake have options to enable
this mode (see note aboutAPP_SUPPORT_FLEXIBLE_PAGE_SIZES
and
ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES
below). A future version of the NDK will
enable this mode by default. If you're using or maintaining a third-party
build system, consult the build system maintainers guide for instructions.See Support 16 KB page sizes for more information.
Changes
- Updated LLVM to clang-r522817. See
clang_source_info.md
in the toolchain
directory for version information.- Issue 1728: Clang now emits an error for invalid Android target versions.
- Issue 1853:
clang-scan-deps
is now included. - Issue 1911: Fixed inconsistent
std::regex_replace
results. - Issue 1947: Improved support for AArch64 function multi-versioning in clang.
- Issue 1963: Fixed undefined behavior in
std::unexpected::has_value()
. - Issue 1988: Added aarch64 support for
preserve_all
calling convention. - Issue 2007: Fixed crash in class template argument deduction caused by
self-referential friend declaration. - Issue 2010: Removed superfluous libraries to reduce disk use.
- Issue 2012: Fixed front end crash when using concepts and modules.
- Issue 2013: Fixed false positive ODR violation in global module fragments.
- Issue 2023: Fixed Clang crashes related to lambda captures in unevaluated
contexts. - Issue 2024: Removed invalid
__attribute__((__const__))
fromgettid
.
- A RISC-V sysroot (AKA riscv64, or rv64) has been added. It is not
supported. It is present to aid bringup for OS vendors, but it's not yet a
supported Android ABI. It will not be built by default. - Issue 1856: Target-prefixed cmd wrappers for clang should now behave
appropriately when the first argument includes quotes. You probably do not
need to use those wrappers. In most cases where you would use
aarch64-linux-android21-clang
, you can instead useclang -target aarch64-linux-android21
, e.g.CC="clang -target aarch64-linux-android21" ./configure
. The wrappers are only needed when working with systems that do
not properly handle aCC
that includes arguments. - Issue 1898: ndk-stack now tolerates 0x prefixed addresses.
- Issue 1921:
ANDROID_USE_LEGACY_TOOLCHAIN_FILE
value is now preserved
during try-compile steps whenON
. - Issue 1974: Unintentionally shipped Vulkan headers have been removed from
sources/third_party/vulkan
. The standard Vulkan headers are included in the
Android sysroot, which Clang will find automatically. - Issue 1993: ndk-stack now tolerates invalid UTF-8 characters in the trace.
- Issue 1994: Fixed ndk-gdb/ndk-lldb to use the correct path for
make and other tools. - Added
APP_SUPPORT_FLEXIBLE_PAGE_SIZES
for ndk-build and
ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES
for CMake. Set to
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
in yourApplication.mk
or pass
-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON
to CMake (via
android.defaultConfig.externalNativeBuild.cmake.arguments
if you're using
the Android Gradle Plugin) to build your code to be compatible with devices
that use a 16KiB page size. Third-party build system users and maintainers
should consult the build system maintainers guide. - Symlinks are now properly preserved in the macOS App Bundle. The NDK installed
via that method is now the same size as the one installed via the SDK manager. - The unsupported libclang, libclang-cpp, libLLVM, and libLTO libraries were
removed to save space.
NDK r27 RC 1
Downloads
Current beta release
android {
ndkVersion "27.0.11902837-rc1"
}
Platform | Package | Size (Bytes) | SHA1 Checksum |
---|---|---|---|
Windows | android-ndk-r27-beta2-windows.zip | 781461627 | 30f4103bc32fd28a5b93bb610db0130cfe9ff125 |
macOS | android-ndk-r27-beta2-darwin.dmg | 920982764 | 53d747f1db1f8239b94f78136dab38259a396ab3 |
Linux | android-ndk-r27-beta2-linux.zip | 662398163 | 93103e182405b9d7757231a1d9dad58937a6374b |
Changelog
Report issues to GitHub.
For Android Studio issues, go to https://b.android.com and file a bug using the
Android Studio component, not the NDK component.
If you're a build system maintainer that needs to use the tools in the NDK
directly, see the build system maintainers guide.
Announcements
-
Android V will allow OEMs to ship arm64-v8a and x86_64 devices with 16KiB page
sizes. Devices that use this configuration will not be able to run existing
apps that use native code. To be compatible with these devices, applications
will need to rebuild all their native code to be 16KiB aligned, and rewrite
any code which assumes a specific page size. ndk-build and CMake have options
to enable this mode (see note aboutAPP_SUPPORT_FLEXIBLE_PAGE_SIZES
and
ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES
below). A future version of the NDK will
enable this mode by default. If you're using or maintaining a third-party
build system, consult the build system maintainers guide for instructions.See Support 16 KB page sizes for more information.
Changes
- Updated LLVM to clang-r522817. See
clang_source_info.md
in the toolchain
directory for version information.- Issue 1728: Clang now emits an error for invalid Android target versions.
- Issue 1853:
clang-scan-deps
is now included. - Issue 1947: Improved support for AArch64 function multi-versioning in clang.
- Issue 1963: Fixed undefined behavior in
std::unexpected::has_value()
. - Issue 1988: Added aarch64 support for
preserve_all
calling convention. - Issue 2007: Fixed crash in class template argument deduction caused by
self-referential friend declaration. - Issue 2010: Removed superfluous libraries to reduce disk use.
- Issue 2012: Fixed front end crash when using concepts and modules.
- Issue 2013: Fixed false positive ODR violation in global module fragments.
- Issue 2024: Removed invalid
__attribute__((__const__))
fromgettid
.
- A RISC-V sysroot (AKA riscv64, or rv64) has been added. It is not
supported. It is present to aid bringup for OS vendors, but it's not yet a
supported Android ABI. It will not be built by default. - Issue 1856: Target-prefixed cmd wrappers for clang should now behave
appropriately when the first argument includes quotes. You probably do not
need to use those wrappers. In most cases where you would use
aarch64-linux-android21-clang
, you can instead useclang -target aarch64-linux-android21
, e.g.CC="clang -target aarch64-linux-android21" ./configure
. The wrappers are only needed when working with systems that do
not properly handle aCC
that includes arguments. - Issue 1898: ndk-stack now tolerates 0x prefixed addresses.
- Issue 1921:
ANDROID_USE_LEGACY_TOOLCHAIN_FILE
value is now preserved
during try-compile steps whenON
. - Issue 1974: Unintentionally shipped Vulkan headers have been removed from
sources/third_party/vulkan
. The standard Vulkan headers are included in the
Android sysroot, which Clang will find automatically. - Issue 1993: ndk-stack now tolerates invalid UTF-8 characters in the trace.
- Issue 1994: Fixed ndk-gdb/ndk-lldb to use the correct path for
make and other tools. - Added
APP_SUPPORT_FLEXIBLE_PAGE_SIZES
for ndk-build and
ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES
for CMake. Set to
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
in yourApplication.mk
or pass
-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON
to CMake (via
android.defaultConfig.externalNativeBuild.cmake.arguments
if you're using
the Android Gradle Plugin) to build your code to be compatible with devices
that use a 16KiB page size. Third-party build system users and maintainers
should consult the build system maintainers guide. - Symlinks are now properly preserved in the macOS App Bundle. The NDK installed
via that method is now the same size as the one installed via the SDK manager. - The unsupported libclang, libclang-cpp, libLLVM, and libLTO libraries were
removed to save space.
NDK r27 beta 1
Downloads
android {
ndkVersion "27.0.11718014-beta1"
}
Platform | Package | Size (Bytes) | SHA1 Checksum |
---|---|---|---|
Windows | android-ndk-r27-beta1-windows.zip | 785017110 | 147b5b333cc57875e34b88ccd29efbe58963264d |
macOS | android-ndk-r27-beta1-darwin.dmg | 926697037 | 168ceb5253fa77eacd6ac7c7b6597bd09a92981c |
Linux | android-ndk-r27-beta1-linux.zip | 658958615 | 35a78f7544ccc72d8438d8ea2feb7f252a062abe |
Changelog
Report issues to GitHub.
For Android Studio issues, go to https://b.android.com and file a bug using the
Android Studio component, not the NDK component.
If you're a build system maintainer that needs to use the tools in the NDK
directly, see the build system maintainers guide.
Announcements
-
Android V will allow OEMs to ship arm64-v8a and x86_64 devices with 16KiB page
sizes. Devices that use this configuration will not be able to run existing
apps that use native code. To be compatible with these devices, applications
will need to rebuild all their native code to be 16KiB aligned, and rewrite
any code which assumes a specific page size. ndk-build and CMake have options
to enable this mode (see note aboutAPP_SUPPORT_FLEXIBLE_PAGE_SIZES
and
ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES
below). A future version of the NDK will
enable this mode by default. If you're using or maintaining a third-party
build system, consult the build system maintainers guide for instructions.See Support 16 KB page sizes for more information.
Changes
- Updated LLVM to clang-r522817. See
clang_source_info.md
in the toolchain
directory for version information.- Issue 1728: Clang now emits an error for invalid Android target versions.
- Issue 1853:
clang-scan-deps
is now included. - Issue 1947: Fixed various function multi-versioning crashes.
- Issue 1963: Fixed undefined behavior in
std::unexpected::has_value()
. - Issue 1988: Added aarch64 support for
preserve_all
calling convention. - Issue 2007: Fixed crash in class template argument deduction caused by
self-referential friend declaration.
- A RISC-V sysroot (AKA riscv64, or rv64) has been added. It is not
supported. It is present to aid bringup for OS vendors, but it's not yet a
supported Android ABI. It will not be built by default. - Issue 1856: Target-prefixed cmd wrappers for clang should now behave
appropriately when the first argument includes quotes. You probably do not
need to use those wrappers. In most cases where you would use
aarch64-linux-android21-clang
, you can instead useclang -target aarch64-linux-android21
, e.g.CC="clang -target aarch64-linux-android21" ./configure
. The wrappers are only needed when working with systems that do
not properly handle aCC
that includes arguments. - Issue 1898: ndk-stack now tolerates 0x prefixed addresses.
- Issue 1921:
ANDROID_USE_LEGACY_TOOLCHAIN_FILE
value is now preserved
during try-compile steps whenON
. - Issue 1974: Unintentionally shipped Vulkan headers have been removed from
sources/third_party/vulkan
. The standard Vulkan headers are included in the
Android sysroot, which Clang will find automatically. - Issue 1993: ndk-stack now tolerates invalid UTF-8 characters in the trace.
- Issue 1994: Fixed ndk-gdb/ndk-lldb to use the correct path for
make and other tools. - Added
APP_SUPPORT_FLEXIBLE_PAGE_SIZES
for ndk-build and
ANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES
for CMake. Set to
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
in yourApplication.mk
or pass
-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON
to CMake (via
android.defaultConfig.externalNativeBuild.cmake.arguments
if you're using
the Android Gradle Plugin) to build your code to be compatible with devices
that use a 16KiB page size. Third-party build system users and maintainers
should consult the build system maintainers guide. - Symlinks are now properly preserved in the macOS App Bundle. The NDK installed
via that method is now the same size as the one installed via the SDK manager. - The unsupported libclang, libclang-cpp, libLLVM, and libLTO libraries were
removed to save space.