Can't compile for android #1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm trying to compile this program for android (I have an idea of an app requiring android + BLE and I wanted to make it in Gio, and this seemed the best example)
I get:
Do you have any idea what's happening?
Let me take a look and see where this is going wrong. Can you let me know what OS and version you are working on?
I'm on Ubuntu 20.04.
a fresh clone from this repo.
I must be on Go 1.16.
The latest android SDK/ndk installed.
Hi, this error should be fixed, there was a name conflict where an exported Go variable name conflicted with a C type. Not sure why this worked before but this probably was never supported and stopped working in the newer versions of Go.
Hi,
I tried a
go build
, and I got:even with the latest
ble
it seems to fail on my machine.When you type "go build" it will try to build on your native environment (Linux). What happens when you compile the hrm app with "gogio -target android"?
This seems to be a gioui.org issue, or a go package cache issue related to old packages that were renamed or removed. You might try to delete the go package cache (rm -rf ~/go/pkg/mod/gioui*) and reinstall the gioui command. Alternately you can try "$ go clean -modcache", which will delete your entire go module cache.
Can you confirm you are on go 1.16?
What happens when you do "$ go get $gioui.org/app/internal/wm")?