x/mobile: .aar file does not show function parameters #64816
Labels
mobile
Android, iOS, and x/mobile
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
Hello.
When I create the .aar file with bind when using the function, its parameters come as var0, var1... instead of the correct name.
Is there any way when generating the .aar file that the function has the correct names?
Thanks.
1- gomobile bind -androidapi 24 -target=android -ldflags="-s -w" -o app/spdnfe_componente.aar ./framework/spdnfe
2- Created spdnfe_componente.aar
3- Import lib in Android Studio
4- call any function the arguments are like var0, var1
Go Version 1.21.4
Go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\thiago.alves\AppData\Local\go-build
set GOENV=C:\Users\thiago.alves\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\thiago.alves\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\thiago.alves\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.21.4
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\Users\thiago.alves\Documents\Estudo\Go\shared-library\go.mod
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=C:\Users\THIAGO~1.ALV\AppData\Local\Temp\go-build1670470057=/tmp/go-build -gno-record-gcc-switches
The text was updated successfully, but these errors were encountered: