Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

.NET 11 RC2 MAUI app fails to compile (NativeAOT) with MAUI Community Toolkit

Đang mở
#13,143 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@simonrozsival đang làm issue này rồi.

Từ ngày 14/10/2026.

  • #13147 của @simonrozsival — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
15/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
android, csharp, java
Lĩnh vực
build-system, mobile

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Area: App+Library Build needs-triage
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

Ngôn ngữ chính
C#
Star
2.1k
Fork
581
Merge trung bình
1 ngày 21 giờ
Pull request đã merge (30 ngày)
241

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của dotnet/android

Tất cả issue của dotnet/android

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.