Raise minimum CMake version.

The latest versions of CMake (3.31 and newer) emit a warning (many times
over the course of a build) whenever the minimum version is specified as
anything older than 3.10. Based on beta feedback, this warning is
intrusive enough that we should break compatibility with users of (very)
old CMake versions.

Studio's stats are reporting the number of builds still on 3.6 (the only
pre-3.10 CMake version in the SDK) as quite low. I unfortunately don't
have that data per NDK version, but intuitively the people sticking with
old version of CMake are probably also sticking with old versions of the
NDK, which should even further reduce the number of users adversely
effected by this. Even if there is anyone effected, upgrading to a new
version of CMake should still be fairly easy for them.

Bug: https://github.com/android/ndk/issues/2100
Test: ./checkbuild.py && ./run_tests.py
Change-Id: Ic5d0be31d05ed87e23d15b9f87bb7b8108d7c227
4 files changed
tree: 9cfc5f5dabd2b2cc0b84cce4c38766862d047335
  1. .github/
  2. build/
  3. docs/
  4. infra/
  5. meta/
  6. ndk/
  7. samples/
  8. scripts/
  9. sources/
  10. tests/
  11. wrap.sh/
  12. .clang-format
  13. .gitignore
  14. Android.mk
  15. checkbuild.py
  16. CleanSpec.mk
  17. CONTRIBUTING.md
  18. MANIFEST.in
  19. navbar.md
  20. ndk-gdb
  21. ndk-gdb.cmd
  22. ndk-stack
  23. ndk-stack.cmd
  24. ndk-which
  25. ndkgdb.py
  26. ndkstack.py
  27. NOTICE
  28. OWNERS
  29. parse_elfnote.py
  30. poetry.lock
  31. pyproject.toml
  32. qa_config.json
  33. README.md
  34. run_tests.py
  35. setup.py
  36. unittest.cfg
  37. UserReadme.md
README.md

Android Native Development Kit (NDK)

The latest version of this document is available at https://android.googlesource.com/platform/ndk/+/main/README.md.

Note: This document is for developers of the NDK, not developers that use the NDK.

The NDK allows Android application developers to include native code in their Android application packages, compiled as JNI shared libraries.

To navigate this site, use the navigation bar at the top of the page. For additional documentation, see the listing for the docs directory. If you're not sure where to start, the Onboarding page will guide you.

Other Resources