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: I can't create an ".aar" file #23411

Closed
carlosbellmont opened this issue Jan 11, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@carlosbellmont
Copy link

commented Jan 11, 2018

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

1.9.2

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\myuser\Be-Bound\Go
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0
set CXX=g++
set CGO_ENABLED=1
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config

What did you do?

gomobile init -ndk C:\Users\myuser\AppData\Local\Android\Sdk\ndk-bundle
--> Ok
gomobile bind -target=android -v -o test\main\mylib.arr test\main\myproject
--> Not OK

What did you expect to see?

I expect a file "mylib.aar"

What did you see instead?

write C:\Users\myuser\AppData\Local\Temp\gomobile-work-929371747\gomobile_bind\classes.go
write C:\Users\myuser\AppData\Local\Temp\gomobile-work-929371747\gomobile_bind\classes.h
write C:\Users\myuser\AppData\Local\Temp\gomobile-work-929371747\gomobile_bind\classes.c
write C:\Users\myuser\AppData\Local\Temp\gomobile-work-929371747\gen\src\Java\interfaces.go
write C:\Users\myuser\AppData\Local\Temp\gomobile-work-929371747\fakegopath\pkg\android_arm\test\main\myproject.a
gomobile: loadExportData failed: open C:\Users\myuser\Be-Bound\Go\pkg\gomobile\pkg_android_arm\test\main\myproject.a: The system cannot find the path specified.

Am I doing something wrong?

@gopherbot gopherbot added this to the Unreleased milestone Jan 11, 2018

@gopherbot gopherbot added the mobile label Jan 11, 2018

@golang golang locked and limited conversation to collaborators Jan 12, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.