Report issues to GitHub.
For Android Studio issues, follow the docs on the Android Studio site.
The platform headers have been synchronized with the Android platform. This means that the headers are now up to date, accurate, and header only bug fixes will affect all API levels. Prior to this, the M and N headers were actually the L headers, all the headers did not actually match the platform level they were supposedly for (declared functions that didn‘t exist, didn’t declare ones that did), and many of the old API levels had missing or incorrect constants that were in newer API levels.
Since these are in some cases radically different from those we've previously shipped, these are not enabled by default. See Unified Headers for details on using the updated headers.
Note: The legacy headers will be removed in a future release. It is likely that r15 will default to using these while still being optional. If all goes well, the legacy headers will be removed in r16, so please test them now.
GCC is no longer supported. It will not be removed from the NDK just yet, but is no longer receiving backports. It cannot be removed until after libc++ has become stable enough to be the default, as some parts of gnustl are still incompatible with Clang. It will likely be removed after that point.
strerror_r
not being available until android-23 with unified headers: https://github.com/android-ndk/ndk/issues/324.__ANDROID_API__
not being set for standalone toolchains with unified headers on Windows: https://github.com/android-ndk/ndk/issues/321._BSD_SOURCE
will never be defined by the NDK when using unified headers; the user's setting will be obeyed. When using the deprecated headers, whether or not this was defined depended on which headers you included. To continue using _BSD_SOURCE
, #define
it in your source files or pass it on the command line as you would for typical Linux code.APP_ALLOW_MISSING_DEPS=true
. See https://github.com/android-ndk/ndk/issues/208.__cxa_thread_atexit_impl
. Non-global thread_local
variables with non-trivial destructors are now supported.These issues will not be fixed. They affect only GCC, which is deprecated.
-D__ANDROID_API__=21
(replacing 21 with the same API level you passed to make_standalone_toolchain.py
) when compiling.