-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
x/mobile: Required use of deprecated environment variables for Android #39945
Comments
With #35030, I think we should update the environment variables thoroughly. |
Thanks @hajimehoshi , just to point out that the correct env vars are |
Hi there, I just submitted a fix for this issue in golang/mobile#51, which particularly affects NDKs installed with latest versions of Android Studio. According to the docs here, newer versions of the NDK are no longer installed into |
thanks @federicobond , will it be reviewed |
Change https://golang.org/cl/247357 mentions this issue: |
ANDROID_HOME is deprecated. golang.org/cl/244057 is replacing it with ANDROID_SDK_ROOT, and we need the builder to use the new environment variable. After the change is submitted and gomobile is updated, we will need another clean up cl to delete ANDROID_HOME. Updates golang/go#39945 Change-Id: I1f06cead94fbf5cd3c1ca1d8c6c68b2a219898eb Reviewed-on: https://go-review.googlesource.com/c/build/+/247357 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Closing due to lack of activity. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
It should.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I ran
gomobile bind -target=android -v github.com/example/package
What did you expect to see?
Output for binding. The use of the
_HOME
suffix has been deprecated as per this dev doc and this thread. The current suffix is_ROOT
.Temporarily I have this in my
~/.bash_profile
:What did you see instead?
Before setting
ANDROID_NDK_HOME
Before setting
ANDROID_HOME
gomobile: this command requires ANDROID_HOME environment variable (path to the Android SDK)
The text was updated successfully, but these errors were encountered: