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
9
votes
1 answer

embedding golang server with flutter

I have web server written in golang which uses graphql package gqlgen and gorm for database. Since golang can be compiled and run on android I wanted to create offline version of my app where sqlite can be used for offline storage and import my…
Nux
  • 5,890
  • 13
  • 48
  • 74
9
votes
3 answers

How to hide Android status bar in native game written with gomobile

How to hide Android status bar in native game written with gomobile? I am experimenting with a simple native Android game written in pure Go using the gomobile tool. It should be able to use the full screen for rendering frames. However I could not…
Everton
  • 12,589
  • 9
  • 47
  • 59
9
votes
1 answer

gomobile command error " No android NDK path is set "

I am using Go version 1.7.5 in windows and when i am trying to use gomobile command either to install or bind or build . It displays this error- "gomobile: no Android NDK path is set. Please run gomobile init with the ndk-bundle installed through…
Sahil Chaudhary
  • 111
  • 1
  • 9
5
votes
1 answer

Can we open a browser with passing URL in golang android OS?

Working on a Go project and using gomobile to generate .apk file. I am trying to open a browser in the go code with a passing URL. I know go supports running CMD commands in different operating systems such as windows and Linux. Wonder to know if…
Ashkanxy
  • 2,380
  • 2
  • 6
  • 17
5
votes
2 answers

Golang - GoMobile tool for cross platform slices of struct return type

During the journey of cross-platform mobile app development, I came across Golang which is having a GoMobile command line tool which generates language bindings that make it possible to call Go functions from Java and Objective-C. However, there are…
saurabh
  • 724
  • 3
  • 17
5
votes
1 answer

gomobile compatibility

I'm writing some test apps with gomobile and native golang. Strangely the apps don't run on Galaxy S3 with Android 4.1.1 but work on Galaxy Note 5 with Android 5.1.1. Does anyone know the clear hardware and software requirements for current version…
Kyle
  • 831
  • 1
  • 9
  • 17
4
votes
1 answer

no Android NDK found in $ANDROID_HOME/ndk-bundle nor in $ANDROID_NDK_HOME in Windows 10

I'm following the official guide to install gomobile. I have Android Studio installed and via the Android Studio SDK manage installed NDK (side by side) and all the SDK packages. Android Studio has no problem compiling and deploying my normal…
Christian
  • 25,249
  • 40
  • 134
  • 225
4
votes
1 answer

How do you bind multiple packages into a single Java AAR file using gomobile?

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…
4
votes
1 answer

Android Framework cannot compile with gomobile bind

We are facing a compilation issue when we try to compile an AAR version of our framework with gomobile bind. It's binding fine with the iOS Framework. Here is the error we get: $ make build_android cd ./gomobile/logger && gomobile bind -o…
Nicolas Charvoz
  • 1,509
  • 15
  • 41
4
votes
1 answer

Xcode is not detecting architectures on a gomobile (bind) produced framework

I have a framework that I produced with gomobile. I have written up most of my detail in this issue. It may have to do with Xcode/ld, but I have a different version of the framework that does compile. I am not sure this is entirely go (although it…
pmpbar
  • 41
  • 1
  • 2
4
votes
1 answer

Always -bash: gomobile: command not found

I have installed gomobile at /Users/GaryChan/go/bin/gomobile and my project is /Users/GaryChan/go/src/abc.com/project When I try to run building android SDK at /Users/GaryChan/go/src/abc.com/project/sdk and run : export…
Jeff Bootsholz
  • 2,971
  • 15
  • 70
  • 141
4
votes
0 answers

Launcher icon of android app built with gomobile not shown

I have a networking app, written in Go. Since Go 1.5 I can build it also for android devices with almost no changes using gomobile working fine. But I can't change default android icon of app. I'm building app with custom manifest file:
sisoft
  • 953
  • 10
  • 22
3
votes
1 answer

gomobile bind: missing methods with struct and interface parameters

I have the following go code: package hello import ( "TestGoMobile/model" "fmt" ) func Test(string) int { return 0 } func Greetings(test model.Test) string { return test.Name } func Hello(base model.Base) { fmt.Println("hello…
Weijie
  • 31
  • 1
3
votes
1 answer

Duplicate class go.Seq found in modules jetified-packageone-runtime (packageone.aar) and jetified-packagetwo-runtime (packagetwo.aar)

I am trying to use two different go packages in my android app project I am using gomobile and each package is compiled with gomobile bind --target=android They are imported like this implementation files("libs/packageone.aar") implementation…
mama
  • 2,046
  • 1
  • 7
  • 24
3
votes
1 answer

Unable to run gomobile init or version on mac

I am a go newbie. I am trying to install gomobile for evaluation on MacOS BigSur but can't get past the init step. running go version returns go version go1.17.6 darwin/amd64 Following the directions, the gomobile install appears to work properly…
Mike M
  • 4,358
  • 1
  • 28
  • 48
1
2 3 4 5 6 7