x/mobile: No Android NDK found when execute gomobile bind #32518
Labels
Milestone
Comments
I checked some other stuff. $ gomobile version
gomobile version +6fa95d9 Fri Jun 7 21:45:18 2019 +0000 (android,ios); androidSDK=
$ echo $ANDROID_HOME
/Users/dio/AndroidSDK/sdk
$ echo $ANDROID_NDK_HOME
/Users/dio/AndroidSDK/android-ndk-r19c Also, I've run $ go get -u -v golang.org/x/mobile/cmd/...
Fetching https://golang.org/x/mobile/cmd/gobind?go-get=1
Parsing meta tags from https://golang.org/x/mobile/cmd/gobind?go-get=1 (status code 200)
get "golang.org/x/mobile/cmd/gobind": found meta tag get.metaImport{Prefix:"golang.org/x/mobile", VCS:"git", RepoRoot:"https://go.googlesource.com/mobile"} at https://golang.org/x/mobile/cmd/gobind?go-get=1
get "golang.org/x/mobile/cmd/gobind": verifying non-authoritative meta tag
Fetching https://golang.org/x/mobile?go-get=1
Parsing meta tags from https://golang.org/x/mobile?go-get=1 (status code 200)
golang.org/x/mobile (download)
Fetching https://golang.org/x/mobile/bind?go-get=1
Parsing meta tags from https://golang.org/x/mobile/bind?go-get=1 (status code 200)
get "golang.org/x/mobile/bind": found meta tag get.metaImport{Prefix:"golang.org/x/mobile", VCS:"git", RepoRoot:"https://go.googlesource.com/mobile"} at https://golang.org/x/mobile/bind?go-get=1
get "golang.org/x/mobile/bind": verifying non-authoritative meta tag
Fetching https://golang.org/x/mobile/internal/importers?go-get=1
Parsing meta tags from https://golang.org/x/mobile/internal/importers?go-get=1 (status code 200)
get "golang.org/x/mobile/internal/importers": found meta tag get.metaImport{Prefix:"golang.org/x/mobile", VCS:"git", RepoRoot:"https://go.googlesource.com/mobile"} at https://golang.org/x/mobile/internal/importers?go-get=1
get "golang.org/x/mobile/internal/importers": verifying non-authoritative meta tag
Fetching https://golang.org/x/mobile/internal/importers/java?go-get=1
Parsing meta tags from https://golang.org/x/mobile/internal/importers/java?go-get=1 (status code 200)
get "golang.org/x/mobile/internal/importers/java": found meta tag get.metaImport{Prefix:"golang.org/x/mobile", VCS:"git", RepoRoot:"https://go.googlesource.com/mobile"} at https://golang.org/x/mobile/internal/importers/java?go-get=1
get "golang.org/x/mobile/internal/importers/java": verifying non-authoritative meta tag
Fetching https://golang.org/x/mobile/internal/importers/objc?go-get=1
Parsing meta tags from https://golang.org/x/mobile/internal/importers/objc?go-get=1 (status code 200)
get "golang.org/x/mobile/internal/importers/objc": found meta tag get.metaImport{Prefix:"golang.org/x/mobile", VCS:"git", RepoRoot:"https://go.googlesource.com/mobile"} at https://golang.org/x/mobile/internal/importers/objc?go-get=1
get "golang.org/x/mobile/internal/importers/objc": verifying non-authoritative meta tag
Fetching https://golang.org/x/mobile/cmd/gomobile?go-get=1
Parsing meta tags from https://golang.org/x/mobile/cmd/gomobile?go-get=1 (status code 200)
get "golang.org/x/mobile/cmd/gomobile": found meta tag get.metaImport{Prefix:"golang.org/x/mobile", VCS:"git", RepoRoot:"https://go.googlesource.com/mobile"} at https://golang.org/x/mobile/cmd/gomobile?go-get=1
get "golang.org/x/mobile/cmd/gomobile": verifying non-authoritative meta tag
Fetching https://golang.org/x/mobile/internal/binres?go-get=1
Parsing meta tags from https://golang.org/x/mobile/internal/binres?go-get=1 (status code 200)
get "golang.org/x/mobile/internal/binres": found meta tag get.metaImport{Prefix:"golang.org/x/mobile", VCS:"git", RepoRoot:"https://go.googlesource.com/mobile"} at https://golang.org/x/mobile/internal/binres?go-get=1
get "golang.org/x/mobile/internal/binres": verifying non-authoritative meta tag Still not work. |
It seems like Gomobile didn't detect android SDK, 'cause the output is "androidSDK=" when run |
Hello, I hava the same problem now, could you tell me how you solved it? Thank you! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
YES
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
$ go get golang.org/x/mobile/cmd/gomobile $ gomobile init $ go get golang.org/x/mobile/example/bind/hello $ gomobile bind -o app/hello.aar -target=android golang.org/x/mobile/example/bind/hello
What did you expect to see?
hello.aar was generated
What did you see instead?
The text was updated successfully, but these errors were encountered: