You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.6.2 linux/amd64
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"
What did you do?
build SDK applications for android
What did you expect to see?
no error.
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?
The text was updated successfully, but these errors were encountered:
hyangah
changed the title
java.lang.UnsatisfiedLinkError: Native method not found: go.Universe.init:()V
x/mobile/bind: java custom package name handling (-javapkg flag) is broken
Jul 7, 2016
The change from using strings to objects for passing errors across
the language barrier broke the custom java package mode of gombile
bind. Fix it and add a runtime test to make sure it won't happen
again.
Fixesgolang/go#16262
Change-Id: Ia7f8afb79556798056f0755758052190081a2dbb
Reviewed-on: https://go-review.googlesource.com/24800
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
imWildCat
pushed a commit
to imWildCat/go-mobile
that referenced
this issue
Apr 11, 2021
The change from using strings to objects for passing errors across
the language barrier broke the custom java package mode of gombile
bind. Fix it and add a runtime test to make sure it won't happen
again.
Fixesgolang/go#16262
Change-Id: Ia7f8afb79556798056f0755758052190081a2dbb
Reviewed-on: https://go-review.googlesource.com/24800
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Please answer these questions before submitting your issue. Thanks!
go version
)?go version go1.6.2 linux/amd64
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"
build SDK applications for android
no error.
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?
The text was updated successfully, but these errors were encountered: