Error: "gomobile version unknown: binary is out of date, re-install it"

564 Views Asked by At

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:

  1. Installed gomobile using [go install golang.org/x/mobile/cmd/gomobile@latest]
  2. Executed [gomobile init]
  3. Executed [gomobile version]
  4. Received the error message mentioned above
1

There are 1 best solutions below

0
Zeke Lu On

For now, the gomobile version command only works when gomobile is checked out under GOPATH and built in GOPATH mode. 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 version and go ahead.