-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
How to build NativeAOT for Android under Linux (Docker) #107337
Comments
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas |
NativeAOT for Android is still under development. See #106748 (comment) . |
If you want to build for Bionic libc, this is possible starting with .NET 8, instructions here: https://github.com/dotnet/runtime/blob/main/src/coreclr/nativeaot/docs/android-bionic.md A more complex sample including JNI here: https://github.com/josephmoresena/NativeAOT-AndroidHelloJniLib/tree/main This target is experimental. |
Hi! I'm not sure I understand the target platform though: Also, "Copy it to an Android device" is a step I cannot do on my (cloud) linux machine. |
linux-bionic-arm64 is a .NET RID. armv8-a doesn't exist as a RID in .NET.
The instructions just show how to build and run an command line executable to run on Android. If you don't need to run it, don't copy it. I assume you want to build a library to include in a otherwise non-.NET app anyway so the way to package/execute it will be different. |
Description
When building for Android under Linux (in our Docker container), I get:
It complains about both a missing folder, but also says Android is unsupported?
Is it one or the other, or both?
I've used the googles sdkmanager to install the Android SDK, which it seems DotNet picks up correctly.
Our setup works for building Android apps just fine, so I'm unclear on what package is missing from the Android install here?
Any help appreciated!
Regards,
Mathias
Reproduction Steps
Here is our sdk packaging script:
https://github.com/defold/defold/blob/dev/scripts/package/package_android_sdk.sh#L92-L93
Expected behavior
It should have all needed to build for Android already?
It would be good if DotNet mentioned which tool was missing, rather than a folder name.
Actual behavior
It doesn't build.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: