Skip to content
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: Failed to build aar when updated to golang1.8 #19377

Closed
liyiheng opened this issue Mar 3, 2017 · 2 comments
Closed

x/mobile: Failed to build aar when updated to golang1.8 #19377

liyiheng opened this issue Mar 3, 2017 · 2 comments
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@liyiheng
Copy link

liyiheng commented Mar 3, 2017

go1.8 darwin/amd64

GOOS="darwin"

Tried to build primitive to Android SDK app
'gomobile' finished with non-zero exit value 1

gomobile: loadExportData failed reading export data: /var/.../primitive.a: invalid encoding format in export data: got 'v'; want 'c' or 'd'

Then I tested with a hello-world-project created which was OK, failed too.

@ALTree ALTree added this to the Unreleased milestone Mar 9, 2017
@ALTree ALTree added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Mar 9, 2017
@themihai
Copy link

themihai commented Mar 17, 2017

I've got the same error on iOS
gomobile bind -target=ios x.org/themihai/remote
gomobile: reading export data: /var/folders/96/xn9qmts104s1mcdqg31s66lh0000gn/T/gomobile-work-670052359/fakegopath/pkg/darwin_arm/bitbucket.org/themihai/tv/remote.a: invalid encoding format in export data: got 'v'; want 'c' or 'd'

@themihai
Copy link

go get -u golang.org/x/mobile/...
go install golang.org/x/mobile/cmd/...
Fixed the issue for me.

@bradfitz bradfitz added the mobile Android, iOS, and x/mobile label Jul 20, 2017
@golang golang locked and limited conversation to collaborators Mar 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

6 participants