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: android bind failing #33382
Comments
Your gomobile binary and sources do not match. How did you install gomobile? |
go get golang.org/x/mobile/cmd/gomobile
…On Wed, 31 Jul 2019 at 12:12, Chotepud Teo ***@***.***> wrote:
Your gomobile binary and sources do not match. How did you install
gomobile?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#33382?email_source=notifications&email_token=AECIHJ7HDRFT25EPJZV34KTQCFXS7A5CNFSM4IIFH6C2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3G47QA#issuecomment-516804544>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AECIHJ5NEABHGLS7ACJ4DLTQCFXS7ANCNFSM4IIFH6CQ>
.
|
Try |
Davids-MacBook-Pro:ped davidsteed$ go get -u
golang.org/x/mobile/cmd/gomobile
Davids-MacBook-Pro:ped davidsteed$ gomobile bind -target android .
gomobile: /Users/davidsteed/go/bin/gobind -lang=go,java
-outdir=/var/folders/v9/_mzflmvx1t5d5tmv6b4211tc0000gn/T/gomob
ile-work-598779738 scp/ped failed: exit status 1
failed to open Java support file: open /Users/davidsteed/src/
golang.org/x/mobile/bind/java/LoadJNI.java: no such file
or directory
failed to copy Java support file: invalid argument
…On Wed, 31 Jul 2019 at 13:45, Chotepud Teo ***@***.***> wrote:
Try go get -u golang.org/x/mobile/cmd/gomobile
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#33382?email_source=notifications&email_token=AECIHJZKRX4RZZXGN74XPVTQCGCONA5CNFSM4IIFH6C2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3HDVFA#issuecomment-516831892>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AECIHJ77NZIZW4NFRYVIYBLQCGCONANCNFSM4IIFH6CQ>
.
|
I had GOMODULES turned off. When I put it back to automatic this went away
and I got this error
go: writing go.sum: open /Users/davidsteed/go/pkg/mod/
github.com/go-openapi/runtime@v0.19.0/go.sum637570821.tmp: permission denied
…On Wed, 31 Jul 2019 at 13:49, David Steed ***@***.***> wrote:
Davids-MacBook-Pro:ped davidsteed$ go get -u
golang.org/x/mobile/cmd/gomobile
Davids-MacBook-Pro:ped davidsteed$ gomobile bind -target android .
gomobile: /Users/davidsteed/go/bin/gobind -lang=go,java
-outdir=/var/folders/v9/_mzflmvx1t5d5tmv6b4211tc0000gn/T/gomob
ile-work-598779738 scp/ped failed: exit status 1
failed to open Java support file: open /Users/davidsteed/src/
golang.org/x/mobile/bind/java/LoadJNI.java: no such file
or directory
failed to copy Java support file: invalid argument
On Wed, 31 Jul 2019 at 13:45, Chotepud Teo ***@***.***>
wrote:
> Try go get -u golang.org/x/mobile/cmd/gomobile
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#33382?email_source=notifications&email_token=AECIHJZKRX4RZZXGN74XPVTQCGCONA5CNFSM4IIFH6C2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3HDVFA#issuecomment-516831892>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AECIHJ77NZIZW4NFRYVIYBLQCGCONANCNFSM4IIFH6CQ>
> .
>
|
Try deleting the gomobile binary and sources manually and run I'm sure your binary is outdated because
gomobile does not work with modules, so you need to do everything the gopath way. |
Deleted all references to it reinstalled from scratch and still get the
same error
…On Wed, 31 Jul 2019 at 14:02, Chotepud Teo ***@***.***> wrote:
Try deleting the gomobile binary and sources manually and run gomobile -h
to make sure it's not found. If it doesn't error then you have another
gomobile binary somewhere. Then go get ... again.
I'm sure your binary is outdated because LoadJNI.java was removed from
the sources a while ago.
I had GOMODULES turned off. When I put it back to automatic this went away
and I got this error
gomobile does not work with modules, so you need to do everything the
gopath way.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#33382?email_source=notifications&email_token=AECIHJ3T33QHZFAY2S4B2FDQCGENLA5CNFSM4IIFH6C2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3HFD2A#issuecomment-516837864>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AECIHJ6R7MYINBC46A7P4JDQCGENLANCNFSM4IIFH6CQ>
.
|
Can you do the same for the |
That has fixed it. Thank you very much for your help
…On Wed, 31 Jul 2019 at 14:48, Chotepud Teo ***@***.***> wrote:
Can you do the same for the gobind command?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#33382?email_source=notifications&email_token=AECIHJYO55QOPFU7RPYSBXLQCGJ2VA5CNFSM4IIFH6C2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3HJN3Y#issuecomment-516855535>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AECIHJ354THGIJTXPYRGLJDQCGJ2VANCNFSM4IIFH6CQ>
.
|
Can you please close this issue then? |
What version of Go are you using (
go version
)?1.12.5Does this issue reproduce with the latest release?Yes
What operating system and processor architecture are you using (
go env
)?darwingo env
OutputWhat did you do? gomobile bind -target android .
What did you expect to see? Build working
What did you see instead? gomobile: /Users/davidsteed/go/bin/gobind -lang=go,java -outdir=/var/folders/v9/_mzflmvx1t5d5tmv6b4211tc0000gn/T/gomobile-work-641481098 scp/ped failed: exit status 1
failed to open Java support file: open /Users/davidsteed/src/golang.org/x/mobile/bind/java/LoadJNI.java: no such file or directory
failed to copy Java support file: invalid argument
The text was updated successfully, but these errors were encountered: