Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ndk-build: Consider ANDROID_SDK_ROOT as deprecated instead of ANDROID_HOME #346

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

MarijnS95
Copy link
Member

@MarijnS95 MarijnS95 commented Sep 12, 2022

Fixes #327, CC @Hoodad

According to the official documentation ndk-build is considering the wrong variable as deprecated. The wrong message was introduced in #39 which bizarrely failed to quote any reference matterial on the matter, making it impossible to understand whether this has always been the case or recently switched in precedence.

@MarijnS95 MarijnS95 force-pushed the ndk-build-swap-sdk-env-vars branch from 85a8794 to 229c929 Compare September 12, 2022 07:56
@MarijnS95 MarijnS95 force-pushed the ndk-build-swap-sdk-env-vars branch 4 times, most recently from f9dc492 to ca7f9a2 Compare September 12, 2022 08:23
@Hoodad
Copy link

Hoodad commented Sep 12, 2022

Thank you for fixing it 👍🙏

…_HOME

According to the [official documentation] `ndk-build` is considering the
wrong variable as deprecated.  The wrong message was introduced in [#39]
which bizarrely failed to quote any reference matterial on the matter,
making it impossible to understand whether this has always been the case
or recently switched in precedence.

[official documentation]: https://developer.android.com/studio/command-line/variables
[#39]: #39
@MarijnS95 MarijnS95 force-pushed the ndk-build-swap-sdk-env-vars branch from ca7f9a2 to fa88fd4 Compare September 12, 2022 11:49
@MarijnS95 MarijnS95 merged commit 7665caf into master Sep 12, 2022
@MarijnS95 MarijnS95 deleted the ndk-build-swap-sdk-env-vars branch September 12, 2022 12:31
MarijnS95 pushed a commit to rust-mobile/cargo-apk that referenced this pull request Nov 30, 2023
…ot found (#35)

Per rust-mobile/ndk#346 `ANDROID_HOME` is the
recommended environment variable over `ANDROID_SDK_ROOT`, but the error message
when no SDK is found at all was still pointing to `ANDROID_SDK_ROOT`.
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.

Is the wrong environment variable being stated as deprecated?
3 participants