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: error: cannot find symbol class error
#16835
Comments
I think you somehow have an outdated Seq.java in play. Seq.java in gomobile master doesn't have that code anymore. |
how can this happen? I'm able to reproduce in 2 different computers |
I'm not sure, and I can't reproduce the error locally either. Do you have multiple copies of Seq.java in your GOPATH? |
someone vendored gomobile and that was causing the issue, thanks ! the issue is fixed now. |
longtran@longtran:~$ go get golang.org/x/mobile/cmd/gomobile golang.org/x/mobile/bindwork/src/golang.org/x/mobile/bind/genjava.go:986: o.Val().ExactString undefined (type constant.Value has no field or method ExactString) golang.org/x/mobile/bindwork/src/golang.org/x/mobile/bind/genjava.go:986: o.Val().ExactString undefined (type constant.Value has no field or method ExactString) |
What version of Go are you using? You need at least go 1.7 to use go mobile.
Den man. 3. jul. 2017 18.34 skrev longtq6195-seta-international <
notifications@github.com>:
… ***@***.***:~$ go get golang.org/x/mobile/cmd/gomobile
golang.org/x/mobile/bind
work/src/golang.org/x/mobile/bind/genjava.go:986: o.Val().ExactString
undefined (type constant.Value has no field or method ExactString)
work/src/golang.org/x/mobile/bind/genobjc.go:371: o.Val().ExactString
undefined (type constant.Value has no field or method ExactString)
***@***.***:$ gomobile install golang.org/x/mobile/example/basic
gomobile: command not found
***@***.***:$ gomobile install golang.org/x/mobile/example/basic
gomobile: command not found
***@***.***:~$ go get golang.org/x/mobile/cmd/gomobile
golang.org/x/mobile/bind
work/src/golang.org/x/mobile/bind/genjava.go:986: o.Val().ExactString
undefined (type constant.Value has no field or method ExactString)
work/src/golang.org/x/mobile/bind/genobjc.go:371: o.Val().ExactString
undefined (type constant.Value has
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16835 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAgCDNpIOCfX67d-6d53AoacYRLLrabgks5sKRgcgaJpZM4JqD2t>
.
|
i'm using go version go1.7 linux/amd64 |
Please answer these questions before submitting your issue. Thanks!
go version
)?go version go1.7 darwin/amd64
go env
)?GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/usr/local/go"
GORACE=""
GOROOT="/opt/go"
GOTOOLDIR="/opt/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
Attempted to bind my SDK with
gomobile bind
and the current master of gomobilegomobile compiling successfully
/cc @eliasnaur
The text was updated successfully, but these errors were encountered: