Questions tagged [gomobile-android]

13 questions
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
2
votes
0 answers

Is it possible to use assembly code with gomobile?

I've been experimenting to use assembly code inside the library that I'm going to run on Android platform using gomobile. TEXT gotomobile·sum(SB),4,$0 MOVW arg1+0(FP), R14 MOVW arg2+4(FP), R13 ADD R15, R14, R13 MOVW R13,…
mfbarnable
  • 21
  • 1
1
vote
0 answers

Why activity label doesn't appear in App Info?

A strange thing occurs to my app. I set labels for most AndroidManifest.xml nodes still my app doesn't get label in App Info activity! I expect to see "Git Sync" while I see "com.githun.sync" as shown in the screenshots What's wrong in my…
mbnoimi
  • 490
  • 4
  • 21
1
vote
1 answer

gomobile bind gomobile: ANDROID_NDK_HOME specifies ...\Android\Sdk\ndk\25.2.9519653, which is unusable: unsupported API version 16 (not in 19..33)

I am a learner of golang ,trying to use golang to develop android When I want to package into APK, I encounter the following problems I'm following the official guide to install gomobile. OS:Win10 go version go1.20.2 windows/amd64 I have installed…
Pgi Pig
  • 11
  • 2
1
vote
0 answers

Go Lang: gomobile bind optimize code built for armv7-a and arm64-v8a

I am struggling to build Go Lang into .so with binding to AAR file. This is code I use for building CGO_ENABLED=1 \ gomobile bind \ -target=android/arm \ -ldflags="-w -s" \ -o export.aar \ -v My goal is…
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
0
votes
0 answers

calling go net.InterfaceAddrs() fails on Android SDK 30+

The issue 40569 makes Golang (mobile binding) incompatible with Android SDK 30+. Calling the stdlib function net.InterfaceAddrs() gives an error due to changes made in Android SDK 30. Discussion suggests that it can be resolved by modifying go…
0
votes
0 answers

how to gomobile stream communication with channels or callbacks

I am trying to implement a chat client with a function Listen() which is forever listening to incoming messages. In my exposed function I convert a channel by iterating over everything it sends and forwarding it with a callback by the receiver (eg…
mama
  • 2,046
  • 1
  • 7
  • 24
0
votes
1 answer

LoadLibrary() fails when added aar library to system service?

I wrote a System Service, but it fails on boot with the message: java.lang.UnsatisfiedLinkError: dlopen failed: library "libgojni.so" not found Basically in the code of the .aar library it tries to load a library using System.loadLibrary() but it…
0
votes
1 answer

"gomobile build" how to create files and write to files (external micro-SD card installed on Samsung tablet) (in APK)?

Original quetion: Does anybody know how does gomobile build (not bind) support FileSystem? I was able to use the asset package for opening and reading files as discussed in this discussion. But not sure how I can create an write to new files in an…
Ashkanxy
  • 2,380
  • 2
  • 6
  • 17
0
votes
1 answer

gomobile build, the Paho mqtt client cannot connect to mqtt broker in APK

I am working on a project where I need to use gomobile tool to create an Android app. The sample code I have in Go is as below var broker = "127.0.0.1" //var broker = "broker.mqttdashboard.com" var port = 1883 opts :=…
Ashkanxy
  • 2,380
  • 2
  • 6
  • 17
-1
votes
1 answer

gomobile does not support c-archive for android

When i tried to build a static library with 'gomobile bind' tools, i got this error: invalid value "c-archive" for flag -buildmode: buildmode c-archive not supported on android/arm
赵文强
  • 11
  • 1
  • 2