1. 
   
   What version of Go are you using (go version)?
   go version go1.6.2 linux/amd64
   2. 
   
   What operating system and processor architecture are you using (go env)?
   GOARCH="amd64"
   GOBIN=""
   GOEXE=""
   GOHOSTARCH="amd64"
   GOHOSTOS="linux"
   GOOS="linux"
   GOPATH="/go/"
   GORACE=""
   GOROOT="/usr/local/go"
   GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
   GO15VENDOREXPERIMENT="1"
   CC="gcc"
   GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
   CXX="g++"
   CGO_ENABLED="1"
   3. 
   
   What did you do?
   build SDK applications for android
   4. 
   
   What did you expect to see?
   no error.
   5. 
   
   What did you see instead?
   java.lang.UnsatisfiedLinkError: Native method not found: 
   go.Universe.init:()V
   
I build a aar file for android app with multiple go package:
gomobile bind -v -o test.sdk.aar -javapkg test.sdk test.sdk/info test.sdk/db

bind is ok, and I get a aar file, but run in andorid, I get the error:
java.lang.UnsatisfiedLinkError: Native method not found: 
go.Universe.init:()V

If I REMOVE -javapkg test.sdk parameters, everything is OK.

How can I use the special java package name? is possible?



https://github.com/golang/go/issues/16262

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