Thanks for reporting this. It should be fixed 
with https://go-review.googlesource.com/#/c/24800/

 - elias

On Thursday, July 7, 2016 at 8:45:47 AM UTC+2, Lewis Deng wrote:
>
> bind/genjava.go
>
> if g.pkg == nil {
> g.Printf("clazz = (*env)->FindClass(env, %q);\n", "go/Universe$"+
> s.obj.Name())
> } else {
> g.Printf("clazz = (*env)->FindClass(env, %q);\n", 
> g.jniClassSigPrefix(s.obj.Pkg())+s.obj.Name())
> }
>
> this is a temporary measure, please fix it, thanks
>
>
> On Thursday, July 7, 2016 at 12:05:53 PM UTC+8, Lewis Deng wrote:
>>
>>
>>
>>    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