Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[NativeAOT] XAJVC0000 with Xamarin.GooglePlayServices.Ads.Lite

未关闭
#13,235 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@simonrozsival 已经在做这个了。

开始于 2026年10月22日。

  • #13242 来自 @simonrozsival —— 未关闭

评估

难度
4/5
预计耗时
3-5 天
新手友好度
55/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
android, csharp

调研方向

Start by reproducing with the listed .NET 11 Android SDK and Xamarin.GooglePlayServices.Ads.Lite 123.4.0, then compare the generated Java callable wrapper for IMediationBannerListenerImplementor under NativeAOT and Mono. The reported failure is in MediationBannerListenerImplementor.java:78; investigate the trimmable typemap generation and confirm the generated method matches its Java supertype. Done means NativeAOT publish succeeds, including the optional user implementation case.

由索引模型根据 Issue 内容生成。

描述

Area: App+Library Build needs-triage
Android framework version

net11.0-android (Preview)

Affected platform version

.NET SDK 11.0.100-rc.2.26504.105

Description

With the trimmable typemap (default for PublishAot=true), javac fails on the generated Java callable wrapper for
Android.Gms.Ads.Mediation.IMediationBannerListenerImplementor from Xamarin.GooglePlayServices.Ads.Lite

Steps to Reproduce

dotnet new android -n AdsOverrideRepro && cd AdsOverrideRepro
dotnet add package Xamarin.GooglePlayServices.Ads.Lite --version 123.4.0
dotnet publish -c Release -r android-arm64 -p:PublishAot=true - fails with XAJVC0000 in MediationBannerListenerImplementor.java:78
dotnet publish -c Release -r android-arm64 (Mono) - succeeds

Optional: add a Java.Lang.Object subclass implementing IMediationBannerListener (implement only the abstract members) and instantiate it from MainActivity. NativeAOT fails additionally in its generated wrapper; Mono succeeds and its wrapper contains zza without @Override.

Did you find any workaround?

A target after _GenerateTrimmableTypeMap that removes @Override from the generated MediationBannerListenerImplementor.java (only covers the Implementor, not user types).

Relevant log output
error XAJVC0000: .../typemap/java/mono/com/google/android/gms/ads/mediation/MediationBannerListenerImplementor.java:78: error: method does not override or implement a method from a supertype
主要语言
C#
星标
2.1k
派生
579
平均合并
1 天 11 小时
30 天内合并 PR
228

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

dotnet/android 的其他 Issue

查看 dotnet/android 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。