Questions tagged [gomobile]

Gomobile is an experimental toolset for using Go on iOS and Android. Gomobile can be used to create entire apps, or as a library to be used by native code.

GoMobile is an experimental toolset, that enables Go/Golang code to run on Android and iOS devices.

94 questions
1
vote
0 answers

How to compile ebitengine for a specific version of android?

In help to the command, the only line, it collects, as I understand it: ebitenmobile bind [-target android|ios] [-bootclasspath ] [-classpath ] [-o output] [build flags] [package] The minimum android version that I have is 19, the goal is 30-33,…
John House
  • 25
  • 6
1
vote
0 answers

Library missing with GoMobile build

I get the following error while trying to build with Go mobile, fresh install with fresh NDK install. ANDROID_NDK_HOME is set, but it seems to not find a particular library. Running on Mac. gomobile:…
MousyBusiness
  • 188
  • 2
  • 14
1
vote
0 answers

How to access localhost web http server created in android emulator from host device

Hello i created a web server in golang, i've compiled it to a JAR/AAR library and i've linked this library to my project, i'm able to start the web server but not communicate with hit through my hostmachine (macos) i can see in my…
roman Sztergbaum
  • 671
  • 1
  • 5
  • 11
1
vote
1 answer

ITMS-90338 gomobile _ptrace rejected by App Store

Apple rejected iOS application when i deploy it with framework builded by gomobile. I try update gomobile to last version, but it doesnt help. Reason: ITMS-90338: Non-public API usage - The app references non-public symbols in Application:…
Anonimys
  • 596
  • 1
  • 5
  • 14
1
vote
1 answer

no exported names in the package "src/github.com/rohankeskar19/android_whisper"

I'm trying to generate a binding for android from my go program but gomobile is giving me an error as no exported names in the package "src/github.com/rohankeskar19/android_whisper" This is the command I Used gomobile bind -v -target=android -o…
1
vote
1 answer

Couldn't find "libgojni.so"

After importing a third party library into my Android project, I get the following error: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file…
Greelings
  • 4,964
  • 7
  • 34
  • 70
1
vote
0 answers

Can you decrease the size of a library generated with gomobile bind for ios?

I've been making an Android app with a GoLang library containing my shared code (currently just code for handling an sqlite database) with the intention of making an IOS version in the future using the same library. Just out of interest I generated…
Darc
  • 745
  • 10
  • 26
1
vote
1 answer

GoMobile Build : Cannot find package

I was testing GoMobile tools in Go[1.12.9 windows/amd64] ,and tried to build the example projects that come with it into an Android Apk. On pointing the build to the package directory and running the build command, the console gave a cannot find…
srt111
  • 1,079
  • 11
  • 20
1
vote
1 answer

Gomobile library uses hidden API method

I have an Android application which uses a Golang library (.aar) created with Gomobile. Anytime the application tries to create an instance of a class from the library or calls a library method it crashes with the next log message: W/om.example.cal:…
zergon321
  • 210
  • 1
  • 10
1
vote
0 answers

What i have to do in java code to kill GoRefQueue Finalizer Thread?

I have some code, that compiled to aar file via gomobile bind -target=android package counter var Count = 0 func Increment() { Count++ } In Java this code looks like abstact class with getCount and increment methods. I want to know, how to…
Roman
  • 11
  • 2
1
vote
0 answers

when i build "gomobile bind" a go project with opencv4 ,error come ,how can i solve

Gomobile bind error The array mean what, Anybody ever had this problem? go build -tags ios -buildmode=c-archive -o/var/folders/vp/3ztk4jzn3hq35qfmp3qwrfm80000gp/T/gomobile-work135205628/faceTest-arm.a gobind failed: exit status 2 #…
Yue.Piao
  • 11
  • 5
1
vote
0 answers

Parsing assets from src/main/assets folder with gomobile

I have a gomobile native Android app which embedded into webview. This setup works nice, I even managed to use the gorilla mux router, but I wanted to use pongo2 templating engine also and I run into a problem when I try to parse my template html…
Lanti
  • 2,299
  • 2
  • 36
  • 69
1
vote
2 answers

Gomobile bind: unsupported basic type: uint64

The documentation says that it should be supported. It seems that its not implemented in the gen.go file: case types.Uint8: // types.Byte return "uint8_t" // TODO(crawshaw): case types.Uint, types.Uint16, types.Uint32, types.Uint64: I…
nicwhitts
  • 190
  • 1
  • 3
  • 22
1
vote
1 answer

Access geolocation data using gomobile

Can I access the phone's geolocation using a native gomobile application? I have seen experimental support for sensor data here, but nothing about the actual latitude, longitude of the device. I have no prior experience in app development, and I am…
adrpino
  • 960
  • 8
  • 33
1
vote
1 answer

Is it possible to render/view html using gomobile?

Is it possible to render html pages using gomobile? I would like to spawn a http server which serves html/css in a separate go runtine and then render it in a webview. There are plenty of options for JavaScript applications(i.e. PhoneGap,…
themihai
  • 7,903
  • 11
  • 39
  • 61