You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't build an Android app on a macOS with ARM architecture using fyne-cross. I get a image platform (linux/amd64) does not match the expected platform (linux/arm64).
Perhaps fyne-cross is not passing the right --arch flag to podman, but there doesn't seem to be a way to inject that.
To Reproduce:
After setting up podman:
$ go run github.com/fyne-io/[email protected] android -app-id com.example.myapp[i] Target: android/multiple[i] Cleaning target directories...WARNING: image platform (linux/amd64) does not match the expected platform (linux/arm64)Error: statfs /private/var/folders/xt/gf42hf7x0wv8vstytl5989580000gn/T/ssh-hCLXh1SiTJ5Y/agent.39888: operation not supported[✗] could not clean the "bin" dir /app/fyne-cross/bin/android: exit status 125exit status 1
This is my system info:
$ uname -aDarwin [REDACTED] 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 arm64
$ go versiongo version go1.20.4 darwin/arm64
The text was updated successfully, but these errors were encountered:
fortuna
changed the title
Can't build Android app on ARM macOS
Can't build Android app on ARM macOS: image platform (linux/amd64) does not match the expected platform (linux/arm64)
Jan 13, 2024
We currently do not support building for Android from an ARM* host. I don't know if it is still the case, but when we looked at it a year ago or so, there was no way to run Android NDK on an ARM* host.
I think to address your bug report, we should:
verify if that is still the case and look at what it take to fix it if it is possible.
It would be interesting if you can investigate your setup and see how docker can run any AMD64 image on ARM64 as that what we currently provide for Android.
That being said, Google is now releasing an Android NDK compatible with ARM64. I have created an issue for this here: fyne-io/fyne-cross-images#42 .
Describe the bug:
I can't build an Android app on a macOS with ARM architecture using fyne-cross. I get a
image platform (linux/amd64) does not match the expected platform (linux/arm64)
.Perhaps fyne-cross is not passing the right --arch flag to podman, but there doesn't seem to be a way to inject that.
To Reproduce:
After setting up podman:
This is my system info:
The text was updated successfully, but these errors were encountered: