You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[NativeAOT] XAJVC0000 with Xamarin.GooglePlayServices.Ads.Lite #13235
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
Activity
simonrozsival commentedon Oct 22, 2026
@lipbrgb thanks for reporting this bug. I'll take a look.
[tests] Add trimming regression tests for past bugs
[tests] Add trimming regression tests for past bugs
[tests] Add trimming regression tests for past bugs
[tests] Add trimming regression tests for past bugs