Simple example:
package test

import (
 "Java/android/content"
 "Java/android/content/pm"
)




func Test() string {
 return "Hello world"
}


returns
$ gomobile bind -v git.xxx.com/test
type-checking package "git.xxx.com/test" failed 
(/Users/xxx/Development/xxx/src/git.xxx.com/test/gobind.go:4:2: could not 
import Java/android/content (cannot find package "Java/android/content" in 
any of:
/usr/local/Cellar/go/1.11.1/libexec/src/Java/android/content (from $GOROOT)
/Users/xxx/Development/xxx/src/Java/android/content (from $GOPATH)))

gomobile: /Users/xxx/Development/xxx/bin/gobind -lang=go,java 
-outdir=/var/folders/wz/4c7lp4w92y99_2bmpyx0j8sm0000gn/T/gomobile-work-238062479
 
git.xxx.com/test failed: exit status 1


On Thursday, October 18, 2018 at 11:28:25 PM UTC+2, Elias Naur wrote:
>
> Does
>
> gomobile bind <Go package>
>
> work? If not, what does it say?
>
>  - elias
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to