.NET 11 RC2 MAUI app fails to compile (NativeAOT) with MAUI Community Toolkit
维护者通常 1 天内回复
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 15/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 领域
- build-system, mobile
调研方向
The failure is in the generated typemap file BoundServiceBinder.java under obj/Release/net11.0-android/typemap/java/, which references MediaControlsService from a package that is not generated. Linked pull request #13147 is already open against this work, so read it first and avoid duplicating it. Reproducing needs a NativeAOT Android publish of the MAUI Community Toolkit sample, which the issue does not provide. Done means the Android publish succeeds with NativeAOT on a clean build.
由索引模型根据 Issue 内容生成。
描述
Android framework version
net11.0-android (Preview)
Affected platform version
.NET 11 RC2
Description
The following exception occurs at build time (after clean bin/obj folders) when trying to publish an Android application with NativeAOT turned on. macOS/iOS build and run NativeAOT fine.
obj\Release\net11.0-android\typemap\java\scrc64243bbae2d1378c01\BoundServiceBinder.java:24: error: package scrc64d4e0e3a6d812f4d7 does not exist
public BoundServiceBinder (scrc64d4e0e3a6d812f4d7.MediaControlsService p0)
^
obj\Release\net11.0-android\typemap\java\scrc64243bbae2d1378c01\BoundServiceBinder.java:32: error: package scrc64d4e0e3a6d812f4d7 does not exist
private native void nctor_2 (scrc64d4e0e3a6d812f4d7.MediaControlsService p0);
^
2 errors
3 warnings
Steps to Reproduce
N/A - haven't tried to reproduce it
Did you find any workaround?
No
Relevant log output
- 主要语言
- C#
- 星标
- 2.1k
- 派生
- 579
- 平均合并
- 1 天 17 小时
- 30 天内合并 PR
- 256
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
dotnet/android 的其他 Issue
-
Area: App+Library Build
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
Area: Mono.Android
难度 2/5 1-3 小时 新手友好度 65/100
dotnet/android#9192 · 4 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
automated needs-triage skill-runner
难度 4/5 1-2 天 新手友好度 18/100
维护者通常 1 天内回复
-
Area: Mono.Bindings needs-triage
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 1 天内回复
-
needs-triage
难度 4/5 3-5 天 新手友好度 48/100
维护者通常 1 天内回复
相似的 Issue
-
bug front-end social
难度 2/5 1-3 小时 新手友好度 72/100
gameguild-gg/gameguild#1237 ·
维护者通常 1 天内回复
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 68/100
microsoft/microsoft-ui-xaml#12515 · 1 条评论 · 1 个 reaction ·
维护者通常 2 天内回复
-
[v5-preview5] `func new` displays incorrect command in error message when project is not initialized未关闭Needs: Triage (Functions) v5 v5-preview5
难度 1/5 1 小时以内 新手友好度 85/100
Azure/azure-functions-core-tools#5838 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
customer-reported needs-team-triage question server-Azure.Mcp tools-Pricing
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复