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

Update ANDROID_HOME to ANDROID_SDK_ROOT #2590

Closed
wants to merge 1 commit into from
Closed

Update ANDROID_HOME to ANDROID_SDK_ROOT #2590

wants to merge 1 commit into from

Conversation

sonicdoe
Copy link
Contributor

From the Android Studio user guide:

ANDROID_HOME, which also points to the SDK installation directory, is deprecated.

From https://developer.android.com/studio/command-line/variables:

> ANDROID_HOME, which also points to the SDK installation directory, is deprecated.
@netlify
Copy link

netlify bot commented Apr 16, 2021

Deploy preview for react-native ready!

Built with commit 68ffc28

https://deploy-preview-2590--react-native.netlify.app

Copy link
Collaborator

@Simek Simek left a comment

Choose a reason for hiding this comment

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

Hi @sonicdoe, thank you for reporting this out and improving asset, however it might be a bit early call, since as stated in the linked docs:

If ANDROID_HOME is defined and contains a valid SDK installation, its value is used instead of the value in ANDROID_SDK_ROOT.

Which might create other problems or confusion for the users who migrated to the new name. I will request review from others, so we can figure out if it's a good time to update this.

Please also update the Android guide for macOS:

@Simek Simek requested a review from elicwhite April 21, 2021 10:39
@sonicdoe
Copy link
Contributor Author

I was surprised about that rule as well. It makes it sound like ANDROID_SDK_ROOT is the variable being deprecated.

Please also update the Android guide for macOS

It’s already updated, see this diff.

@Simek
Copy link
Collaborator

Simek commented May 17, 2022

Hello @sonicdoe, sorry, but I have lost a track of this PR for some reason. 😅

It look like the path changes have already been applied within #2991, so I think we can close this PR now.

If you seeing anything incorrect or missing in the parts after the refactor please post the new PR with the suggestions!

@Simek Simek closed this May 17, 2022
@leotm
Copy link
Contributor

leotm commented May 17, 2022

thanks too @sonicdoe btw i'm seeing Last updated 2022-03-23 UTC ANDROID_SDK_ROOT is deprecated in favour of ANDROID_HOME

From the Android Studio user guide

Capture

Capture

so i think Google have made a u-turn 20 days after

@Simek i'm happy to create a new issue and PR top revert if i'm seeing straight 😅

(i'm seeing both variables remain on latest GitHub Actions Virtual Environments, so as mentioned both variables will be checked by AGP for consistency anway)

@cortinico
Copy link
Contributor

i'm happy to create a new issue and PR top revert if i'm seeing straight 😅

Yup you're right. We should update the docs to use ANDROID_HOME instead of ANDROID_SDK_ROOT now to follow the official guidance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants