I'm getting the error message no exported names in the package when trying to run the command gomobile bind -target=android github.com/nknorg/nkn-sdk-go github.com/nknorg/ncp-go
.
The goal is to generate a .aar file from the Go libraries nkn-sdk-go and ncp-go so that the .aar file can be imported into an Android project. I was able to generate the .aar files for each library individually by downloading the repos, moving into their root directories, and running the command gomobile bind -target=android .
. However, when trying to run the command for multiple packages (locally or externally) or from outside of the downloaded library's directory (e.g. gomobile bind -target=android nkn-sdk-go
), I get the above error message.
I'm running Go version 1.15.5 with NDK version 21.3.6528147 on Windows 10. Any ideas on what the issue could be?