Skip to content

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

Open
raglady wants to merge 1 commit intotauri-apps:devfrom
raglady:fix-ndk-home-not-honor
Open

fix(cli): Honor a specified NDK version by setting NDK_HOME, if set (#14860)#15344
raglady wants to merge 1 commit intotauri-apps:devfrom
raglady:fix-ndk-home-not-honor

Conversation

@raglady
Copy link
Copy Markdown

@raglady raglady commented May 5, 2026

fixes #14860
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

@raglady raglady requested a review from a team as a code owner May 5, 2026 19:38
@github-project-automation github-project-automation Bot moved this to 📬Proposal in Roadmap May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📬Proposal

Development

Successfully merging this pull request may close these issues.

[feat] Honor a specified NDK version, if set

1 participant