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/example/ivy/android: gradle build fails #15554

Closed
hajimehoshi opened this issue May 5, 2016 · 3 comments
Closed

x/mobile/example/ivy/android: gradle build fails #15554

hajimehoshi opened this issue May 5, 2016 · 3 comments

Comments

@hajimehoshi
Copy link
Member

hajimehoshi commented May 5, 2016

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

go version go1.6.2 darwin/amd64

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

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/hajimehoshi/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GO15VENDOREXPERIMENT="1"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"

What did you do?

$ gradle build
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:ivy:gobind
/Users/hajimehoshi/go/bin/gomobile: package "[Ljava.lang.String;@3eff6846": cannot find package "[Ljava.lang.String;@3eff6846" in any of:
> Buildi/usr/local/go/src/[Ljava.lang.String;@3eff6846 (from $GOROOT)
        /Users/hajimehoshi/go/src/[Ljava.lang.String;@3eff6846 (from $GOPATH)
:ivy:gobind FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ivy:gobind'.
> Process 'command '/Users/hajimehoshi/go/bin/gomobile'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 5.167 secs

Found the below debug info when running gradle build --debug:

17:16:47.225 [INFO] [org.gradle.process.internal.DefaultExecHandle] Starting process 'command '/Users/hajimehoshi/go/bin/gomobile''. Working directory: /Users/hajimehoshi/go/src/golang.org/x/mobile/exampl
e/ivy/android/ivy Command: /Users/hajimehoshi/go/bin/gomobile bind -i -o ivy.aar -target android [Ljava.lang.String;@5e1d1524 robpike.io/ivy/mobile
17:16:47.225 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Environment for process 'command '/Users/hajimehoshi/go/bin/gomobile'': {TMUX_PANE=%55, PATH=/Users/hajimehoshi/go/bin:/usr/local/go/bi
n:/Users/hajimehoshi/go/bin:/usr/local/sbin:/Users/hajimehoshi/google-cloud-sdk/bin:/Users/hajimehoshi/Library/Android/sdk/platform-tools:/Users/hajimehoshi/Library/Android/sdk/build-tools/23.0.3:/usr/loc
al/texlive/2015basic/bin/x86_64-darwin:/Users/hajimehoshi/go_appengine:/Users/hajimehoshi/go/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/go/bin:/Library/TeX/tex
bin:/Users/hajimehoshi/google-cloud-sdk/bin:/usr/local/texlive/2015basic/bin/x86_64-darwin:/Users/hajimehoshi/go_appengine:/Users/hajimehoshi/go/bin:/usr/local/go/bin, JAVA_ARCH=x86_64, HISTSIZE=9999, TER
M=screen, ANDROID_HOME=/Users/hajimehoshi/Library/Android/sdk, JAVA_MAIN_CLASS_23131=org.gradle.launcher.GradleMain, DISPLAY=/private/tmp/com.apple.launchd.tkb7bxwP0H/org.macosforge.xquartz:0, APP_NAME_23
131=Gradle, LOGNAME=hajimehoshi, XPC_SERVICE_NAME=0, PWD=/Users/hajimehoshi/go/src/golang.org/x/mobile/example/ivy/android, TERM_PROGRAM_VERSION=361.1, SHELL=/bin/bash, TERM_PROGRAM=Apple_Terminal, GOROOT
_BOOTSTRAP=/usr/local/go, SECURITYSESSIONID=186a8, GOPATH=/Users/hajimehoshi/go, OLDPWD=/usr/local/Cellar/gradle/2.13/libexec, USER=hajimehoshi, TMPDIR=/var/folders/7t/qw3np69559591s1v0mk5_p1m0000gn/T/, A
PP_ICON_23131=/usr/local/Cellar/gradle/2.13/libexec/media/gradle.icns, SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.HhaRWMeH9r/Listeners, XPC_FLAGS=0x0, TERM_SESSION_ID=3BD2B606-823D-41D5-B6DD-C239C1E2F07
A, __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0, Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.SL0e53mZXT/Render, com.apple.java.jvmTask=CommandLine, LC_CTYPE=UTF-8, TMUX=/private/var/folders/7t/qw3n
p69559591s1v0mk5_p1m0000gn/T/tmux-501/default,2472,0, SHLVL=2, HOME=/Users/hajimehoshi}
@bradfitz bradfitz added this to the Unreleased milestone May 5, 2016
@gopherbot
Copy link

CL https://golang.org/cl/23690 mentions this issue.

gopherbot pushed a commit to golang/mobile that referenced this issue Jun 2, 2016
For golang/go#15554

Also update app target sdk api to 23.

Change-Id: Id66b17b4388703e9806cc50def554b3c58606e24
Reviewed-on: https://go-review.googlesource.com/23690
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Elias Naur <elias.naur@gmail.com>
@hyangah
Copy link
Contributor

hyangah commented Jun 14, 2016

0.2.6 plugin is available - https://plugins.gradle.org/plugin/org.golang.mobile.bind
Reopen the issue or file a new issue if the problem still occurs.

@hyangah hyangah closed this as completed Jun 14, 2016
@hajimehoshi
Copy link
Member Author

Thank you!

@golang golang locked and limited conversation to collaborators Jun 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants