x/mobile: java.lang.UnsatisfiedLinkError: Native method not found: go.Seq.init:()V on API 19 #19492
Labels
mobile
Android, iOS, and x/mobile
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.7.5 linux/amd64
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/max/dev/workspace/go"
GORACE=""
GOROOT="/home/max/dev/go"
GOTOOLDIR="/home/max/dev/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build775467473=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
What did you do?
I'm building a simple native library with
gomobile bind
. On Android Kitkat, my app, built with aar created by gomobile crashes on some devices. I'm getting crash reports like that:Exception java.lang.UnsatisfiedLinkError: Native method not found: go.Seq.init:()V
go.Seq.init (Seq.java)
go.Seq.<clinit> (Seq.java)
com.justmax437.sigcheck.Sigcheck. (Sigcheck.java)
...
Not sure if older versions also affected, my minSdkVersion is 19. Lolipop and newer seems to work as expected, no such crashes there.
The text was updated successfully, but these errors were encountered: