Skip to content

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

Closed

Description

@lipbrgb

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

Activity

  1. added
    Area: App+Library Build
    needs-triage
    on Oct 21, 2026
  2. added this to the .NET 12 milestone on Oct 22, 2026
  3. simonrozsival commented on Oct 22, 2026

    @simonrozsival
    Member

    @lipbrgb thanks for reporting this bug. I'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area: App+Library Buildneeds-triage

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions