Skip to content

fix(cli): Honor a specified NDK version by setting NDK_HOME, if set (#14860) - #15344

Merged
Legend-Master merged 1 commit into
tauri-apps:devfrom
raglady:fix-ndk-home-not-honor
Jun 15, 2026
Merged

fix(cli): Honor a specified NDK version by setting NDK_HOME, if set (#14860)#15344
Legend-Master merged 1 commit into
tauri-apps:devfrom
raglady:fix-ndk-home-not-honor

Conversation

@raglady

@raglady raglady commented May 5, 2026

Copy link
Copy Markdown
Contributor

Previously, if the NDK_HOME environment variable is set or not, the NDK used by the cli is the lastest version installed at ANDROID_HOME/ndk directory. And if the cli cannot find any ndk inside the ANDROID_HOME/ndk, it try to install the version 29.0.13846066.
We got always this type of output even we set NDK_HOME or not, where the version is the latest or 29.0.13846066:

Info Using installed NDK: ~/Android/Sdk/ndk/29.0.13846066

Now, after this update, when we launch for example:

$  NDK_HOME=/custom/Android/Sdk/ndk/xx.xxxxxx cargo tauri android dev

we get the output:

Info Using installed NDK: /custom/Android/Sdk/ndk/xx.xxxxxxx

Fixes #14860
Closes #14398

@raglady
raglady requested a review from a team as a code owner May 5, 2026 19:38

@Legend-Master Legend-Master left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Legend-Master
Legend-Master merged commit be0cb0d into tauri-apps:dev Jun 15, 2026
2 checks passed
Proksima pushed a commit to Proksima/tauri that referenced this pull request Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] Honor a specified NDK version, if set

2 participants