Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for ARM host builds of Android targets? #775

Open
Sintrastes opened this issue Mar 26, 2022 · 1 comment
Open

Support for ARM host builds of Android targets? #775

Sintrastes opened this issue Mar 26, 2022 · 1 comment

Comments

@Sintrastes
Copy link

The documentation for obelisk (which I believe is using reflex-platform for android build support -- hence why I'm posting that here. If that's incorrect, I can move this issue over there) mentions that Android builds are currently only supported on Linux.

I am currently running an Ubuntu 20.04.4 (ARM64 edition) LTS virtual machine on my M1 Macbook Pro in an attempt to get around that restriction, but it appears that additionally, Android builds are not supported on ARM64 Linux either.

When I run nix-build -A android.frontend -o result-android in my project, I just get:

error: Android builds are not supported on this platform.

Has anyone actually tried and confirm that Android builds are not working on ARM64 linux yet? If so, and it is indeed not working on that platform, what would it take for builds to be supported?

@Sintrastes Sintrastes changed the title Support for ARM host builds? Support for ARM host builds of Android targets? Mar 26, 2022
@cidkidnix
Copy link
Contributor

Google doesn't provide binary NDK releases for aarch64-linux which makes this significantly harder. It's possible to build an android app without the NDK (using the non-prebuilt crossSystem in nixpkgs for android) but gradle will fail because it refuses to copy versioned libraries.

There is also probably another chunk of issues that I haven't ran into yet, it's a big chunk of unexplored work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants