-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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 for android #9889
Comments
Any feedback on this issue? |
Trying to build a console with dotnet publish -r android stankinsv2/solution/StankinsV2/Stankins.Console/Stankins.Console.csproj --self-contained true The answer is : NETSDK1056: Project is targeting runtime 'android' but did not resolve any runtime-specific packages. This runtime may not be supported by the target framework. You can find azure pipeline at |
I'm not sure if there ever was (official) android support for dotnet core, but the android RIDs have been removed from the docs in #8710. |
What I've foundI found the following RIDs in the
They were added at 125bc42 by merging pull request dotnet/corefx#16729 on 2017-03-07. I tested them on .NET Core SDK 2.1.801 (Runtime 2.1.12). The result is only I am not able to investigate source of .NET, though there are some folders named after I created a Hello World, built as dotnet new console
dotnet publish --configuration Release --runtime android-arm64 It's obvious that the runtime files are from This should be because of the entry {
"android-arm64": {
"#import": [
"android",
"linux-arm64"
]
}
} With a bit more effort, I drew the RID graph
The section Do I really need to add a new RID? of Runtime IDs says
The section RID graph of .NET Core RID Catalog | Microsoft Docs, which this issue is related to, says
In pull request dotnet/docs 8710 pointed out by piccaso,
There is a similar situation in the issue dotnet/sdk#3037: Alpine 3.9 RIDs were added in 2019-01, but not supported by all the SDK distros until 2019-04. Conclusion.NET may define RIDs for some reason but not implement them immediately. There are still no direct official packages for Android so far. The RIDs
are supported by fallback. The RIDs
are defined for hierarchy, but there are no packages available. Did I miss anything? Thanks. |
This issue has been closed as part of the issue backlog grooming process outlined in #22351. That automated process may have closed some issues that should be addressed. If you think this is one of them, reopen it with a comment explaining why. Tag the |
[Enter feedback here]
The RIDs is contain andorid,but no core sdk on android or cross build for it.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: