# Android NDK

Native Android development tools for compiling C and C++, debugging native libraries and integrating them into Android apps.

> This is the Markdown version of the Android NDK page on OpenNavo, with the same facts as the web page: <https://opennavo.com/apps/android-ndk>

- **Latest version**: `30`
- **Developer**: Google
- **Homepage**: <https://developer.android.com/ndk/index.html>
- **Categories**: [Developer Tools](https://opennavo.com/categories/developer-tools)
- **Install**: `brew install --cask android-ndk`
- **30-day installs**: 534
- **Homebrew**: Available; updated by Homebrew
- **Download URL**: <https://dl.google.com/android/repository/android-ndk-r30-darwin.dmg>
- **SHA-256**: `285f6c877b0bdd3986b4549a0157f9ffcb653cecdf107837c19c8af1ceff37da`

SHA-256 only checks that the download is complete; it is not a security certification.

## Caveats

You may want to add to your profile: 'export ANDROID_NDK_HOME="$HOMEBREW_PREFIX/share/android-ndk"'

## Installation and removal contents

```json
[
  {
    "declaration": {
      "preflight_steps": [
        {
          "steps": [
            {
              "force": true,
              "source": {
                "base": "staged_path",
                "path": "AndroidNDK*.app/Contents/NDK"
              },
              "source_glob": true,
              "target": {
                "base": "homebrew_prefix",
                "path": "share/android-ndk"
              },
              "type": "symlink"
            }
          ]
        }
      ]
    },
    "phase": "install",
    "sources": [],
    "type": "preflight_steps"
  },
  {
    "declaration": {
      "uninstall": [
        {
          "delete": "$HOMEBREW_PREFIX/share/android-ndk"
        }
      ]
    },
    "phase": "uninstall",
    "sources": [],
    "type": "uninstall"
  },
  {
    "declaration": {
      "command_wrapper": [
        "ndk-gdb",
        {
          "executable": "$HOMEBREW_PREFIX/share/android-ndk/ndk-gdb"
        }
      ],
      "target": "$HOMEBREW_PREFIX/bin/ndk-gdb"
    },
    "phase": "install",
    "sources": [
      "ndk-gdb"
    ],
    "target": "$HOMEBREW_PREFIX/bin/ndk-gdb",
    "type": "command_wrapper"
  },
  {
    "declaration": {
      "command_wrapper": [
        "ndk-stack",
        {
          "executable": "$HOMEBREW_PREFIX/share/android-ndk/ndk-stack"
        }
      ],
      "target": "$HOMEBREW_PREFIX/bin/ndk-stack"
    },
    "phase": "install",
    "sources": [
      "ndk-stack"
    ],
    "target": "$HOMEBREW_PREFIX/bin/ndk-stack",
    "type": "command_wrapper"
  },
  {
    "declaration": {
      "command_wrapper": [
        "ndk-which",
        {
          "executable": "$HOMEBREW_PREFIX/share/android-ndk/ndk-which"
        }
      ],
      "target": "$HOMEBREW_PREFIX/bin/ndk-which"
    },
    "phase": "install",
    "sources": [
      "ndk-which"
    ],
    "target": "$HOMEBREW_PREFIX/bin/ndk-which",
    "type": "command_wrapper"
  },
  {
    "declaration": {
      "command_wrapper": [
        "ndk-build",
        {
          "executable": "$HOMEBREW_PREFIX/share/android-ndk/ndk-build"
        }
      ],
      "target": "$HOMEBREW_PREFIX/bin/ndk-build"
    },
    "phase": "install",
    "sources": [
      "ndk-build"
    ],
    "target": "$HOMEBREW_PREFIX/bin/ndk-build",
    "type": "command_wrapper"
  },
  {
    "declaration": {
      "command_wrapper": [
        "ndk-depends",
        {
          "executable": "$HOMEBREW_PREFIX/share/android-ndk/ndk-depends"
        }
      ],
      "target": "$HOMEBREW_PREFIX/bin/ndk-depends"
    },
    "phase": "install",
    "sources": [
      "ndk-depends"
    ],
    "target": "$HOMEBREW_PREFIX/bin/ndk-depends",
    "type": "command_wrapper"
  },
  {
    "declaration": {
      "zap": []
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## About

The Android Native Development Kit is a toolchain for building C and C++ components for Android applications. It is intended for native-code developers, game developers and teams maintaining performance-sensitive or portable libraries, rather than users seeking a standalone desktop application.

### Features
- Compile native Android libraries with the NDK's LLVM/Clang toolchain and platform headers.
- Build with ndk-build or integrate native libraries through CMake and Gradle.
- Target supported Android ABIs and API levels using supplied sysroots.
- Debug native code through Android Studio's LLDB integration and command-line tools.
- Resolve native crash stacks with ndk-stack and inspect runtime performance with relevant profiling tools.

### Installation and dependencies
Google recommends installing the NDK through Android Studio's SDK Manager, which supports side-by-side versions. Direct downloads are available as a notarized macOS DMG; this catalog cask can be installed with `brew install --cask android-ndk`. The r30 DMG is 1,072,970,961 bytes, independently confirmed by Google's download table and an HTTP HEAD request to the exact asset. Installed toolchains, SDK components, build products and debug symbols require additional space.

Pin the project's NDK version using the Android Gradle plugin's ndkVersion setting to maintain reproducible builds. CMake is needed for a CMake-based build, but not for a project using only ndk-build. Gradle, an appropriate Android SDK and a compatible Java runtime are separate project dependencies. Android Studio supplies the LLDB debugger for its native debugging workflow. Building or testing Android applications may additionally require a configured emulator or physical device. The checked direct-download page and fresh cask metadata do not establish a precise minimum host macOS version or CPU architecture requirement for every r30 tool, so those are not inferred from Android Studio's separate requirements.

### Accounts, permissions and license
The toolchain download is available under Google's Android SDK License Agreement, with included open-source components governed by their respective licenses. The download is not a paid subscription; publishing or using separate hosted services can involve separate accounts and terms. A Google account is not documented as necessary to run local NDK compilation. Network access is needed for downloading tools and dependencies; a prepared local build can run offline if its build scripts and dependencies permit it.

The NDK does not need blanket desktop-control permissions to compile files. It needs access to project sources, build directories and configured SDK locations. Debugging and device workflows have their own authorization steps. This toolkit has no standalone graphical interface: the accompanying screenshot is Google's Android Studio SDK Manager documentation showing how to select the NDK, not an invented NDK app window. The icon uses official Android Developers branding, not a claimed NDK-specific application icon.

### Practical cautions
Native code can introduce memory-safety issues and ABI compatibility problems. Test on relevant devices, API levels and page-size configurations, and do not assume a newer compiler preserves every project's behavior. Review build scripts before running them because builds can execute arbitrary tools. Keep project toolchain versions explicit and validate release builds, symbol stripping and native dependencies before distributing an application. Version updates can change compiler diagnostics, runtime libraries and supported tool behavior.

Sources: [Official NDK overview](https://developer.android.com/ndk), [Official downloads and license](https://developer.android.com/ndk/downloads), [Official installation guide](https://developer.android.com/studio/projects/install-ndk), [Official r30 changelog](https://github.com/android/ndk/wiki/Changelog-r30), [Official r29 changelog](https://github.com/android/ndk/wiki/Changelog-r29), [Official r28 changelog](https://github.com/android/ndk/wiki/Changelog-r28).

## System requirements

- Build for macOS 27, 26, 15, 14, 13, 12, 11 · Version: 30 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/a/android-ndk.rb> · Checked 2026-11-29
  - <https://dl.google.com/android/repository/android-ndk-r30-darwin.dmg>
  - SHA-256: `285f6c877b0bdd3986b4549a0157f9ffcb653cecdf107837c19c8af1ceff37da`
- Build for macOS 27, 26, 15, 14, 13, 12, 11 · Version: 30 · Apple silicon · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/a/android-ndk.rb> · Checked 2026-11-29
  - <https://dl.google.com/android/repository/android-ndk-r30-darwin.dmg>
  - SHA-256: `285f6c877b0bdd3986b4549a0157f9ffcb653cecdf107837c19c8af1ceff37da`

## Uninstall

- `brew uninstall --cask android-ndk`

A regular uninstall removes the app and keeps its settings and caches.

### Uninstalling also removes

- Files and folders: `$HOMEBREW_PREFIX/share/android-ndk` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/a/android-ndk.rb> · These entries come from the Homebrew definition, checked 2026-11-29. They say what it declares, not what is on your Mac.

## Latest release notes

### 30 (2026-10-07)

Updates LLVM, fixes compiler and debugger issues and raises the maximum API level.

**Changes**

- Updates LLVM to clang-r574158c.
- Fixes runtime crashes with LTO and nested exception handlers.
- Fixes ARM -O3 compiler hangs and reference/pointer miscompilation.
- Fixes AArch64 defaulted equality compilation and wchar.h module conflicts.
- Fixes LLDB reading a shared library that is the last APK entry.
- Improves ARM dot-product code generation and raises sysroot maximum API to 37.

## Facts and sources

- <https://opennavo.com/apps/android-ndk>
- <https://opennavo.com/apps/android-ndk/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/a/android-ndk.rb> · Checked 2026-11-29
- <https://formulae.brew.sh/cask/android-ndk>
