Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#13,235 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@simonrozsival ci sta già lavorando.

Dal 22/10/2026.

  • #13242 di @simonrozsival — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, csharp

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
C#
Stelle
2.1k
Fork
579
Merge medio
1g 13h
PR unite (30g)
238

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di dotnet/android

Tutte le issue di dotnet/android

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.