I'm encountering an error while working with gomobile, and I'm seeking assistance in resolving it. The specific error message I'm receiving is:
gomobile version unknown: binary is out of date, re-install it
To provide some context, here are the steps I've taken:
- Installed gomobile using [
go install golang.org/x/mobile/cmd/gomobile@latest] - Executed [
gomobile init] - Executed [
gomobile version] - Received the error message mentioned above
For now, the
gomobile versioncommand only works whengomobileis checked out underGOPATHand built inGOPATHmode. See this reported issue: x/mobile: gomobile version doesn't work when not checked out under GOPATH or not built in GOPATH mode.If you are interested in the current implementation of
gomobile version, you can find it here: runVersion.The conclusion is that you can you can ignore the output of
gomobile versionand go ahead.