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

Comments

@liyiheng
Copy link

@liyiheng 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
@themihai

This comment has been minimized.

Copy link

@themihai 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

This comment has been minimized.

Copy link

@themihai themihai commented Mar 18, 2017

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

@bradfitz bradfitz added the mobile label Jul 20, 2017
@eliasnaur eliasnaur closed this Mar 16, 2018
@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.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants
You can’t perform that action at this time.