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/cmd/gomobile: bind failing (-target = android) #32668

Closed
roypaushali opened this issue Jun 18, 2019 · 1 comment
Closed

x/mobile/cmd/gomobile: bind failing (-target = android) #32668

roypaushali opened this issue Jun 18, 2019 · 1 comment
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile
Milestone

Comments

@roypaushali
Copy link

roypaushali commented Jun 18, 2019

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

$ go version
go version go1.12.6 windows/amd64

Does this issue reproduce with the latest release?

yes

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

go env Output
$ go env
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\paushali.roy.UBIMAX\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\paushali.roy.UBIMAX\go
set GOPROXY=
set GORACE=
set GOROOT=c:\go
set GOTMPDIR=
set GOTOOLDIR=c:\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
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
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\PAUSHA~1.UBI\AppData\Local\Temp\go-build235382686=/tmp/go-build -gno-record-gcc-switches

What did you do?

$go build
$go install
$ hello_world
Total: 7977226240, Free:0, UsedPercent:82.000000%
{"total":7977226240,"available":1427681280,"used":6549544960,"usedPercent":82,"free":0,"active":0,"inactive":0,"wired":0,"laundry":0,"buffers":0,"cached":0,"writeback":0,"dirty":0,"writebacktmp":0,"shared":0,"slab":0,"sreclaimable":0,"pagetables":0,"swapcached":0,"commitlimit":0,"committedas":0,"hightotal":0,"highfree":0,"lowtotal":0,"lowfree":0,"swaptotal":0,"swapfree":0,"mapped":0,"vmalloctotal":0,"vmallocused":0,"vmallocchunk":0,"hugepagestotal":0,"hugepagesfree":0,"hugepagesize":0}
$ gomobile bind -target=android hello_world

What did you expect to see?

Nothing, implying that it has successfully built the library

What did you see instead?

C:\Users\paushali.roy.UBIMAX\go\bin\gomobile.exe: javac -d C:\Users\PAUSHA~1.UBI\AppData\Local\Temp\gomobile-work-761714131\javac-output -source 1.7 -target 1.7 -bootclasspath C:\android-tools\platforms\android-28\android.jar go\LoadJNI.java go\Seq.java go\Universe.java go\error.java test\Test.java failed: exec: "javac": executable file not found in %PATH%

Attaching PATH variable. Java jdk\bin is already included there.

gomobile_bind_fail

@dmitshur dmitshur changed the title gomobile bind failing (-target = android) x/mobile/cmd/gomobile: bind failing (-target = android) Jun 18, 2019
@gopherbot gopherbot added this to the Unreleased milestone Jun 18, 2019
@gopherbot gopherbot added the mobile Android, iOS, and x/mobile label Jun 18, 2019
@roypaushali
Copy link
Author

Restarted the computer and it worked. -BIIIG eyeroll-

@golang golang locked and limited conversation to collaborators Jun 18, 2020
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
Projects
None yet
Development

No branches or pull requests

2 participants