xamarin / GooglePlayServicesComponents

Other
314 stars 146 forks source link

Xamarin.GooglePlayServices.Ads.Lite - [DynamiteModule] Local module descriptor class for com.google.android.gms.ads.dynamite not found. #565

Open blmiles opened 2 years ago

blmiles commented 2 years ago

Implementing the Xamarin.GooglePlayServices.Ads.Lite plugin in a Xamarin.Forms Android app with a MainPage and 5 child pages, an AdView on each...

In the Android app, I get Google ads showing on the main page, but not on the child-pages I navigate to...

Stepping through the code, all seems to work, no errors thrown.

BUT

I get the following in output, if anyone can enlighten me on this...that would be most helpful!!

[Ads] This request is sent from a test device. [DynamiteModule] Local module descriptor class for com.google.android.gms.ads.dynamite not found. [DynamiteModule] Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:214106404 [DynamiteModule] Selected remote version of com.google.android.gms.ads.dynamite, version >= 214106404 [Ads] #004 The webview is destroyed. Ignoring action.

FYI, done the same for iOS app and that app all works fine using this plugin - Xamarin.Firebase.iOS.AdMob.

@jpobst sorry to tag you but answeres from somewhere on this would be most appreciate OR point one in the right direction if possible?

Thanks

mhdwaelanjo commented 1 year ago

I fixed the problem.. we can use my libraries :

 <PackageReference Include="Anjo.Android.GoogleServices.Ads" Version="22.0.0" />
 <PackageReference Include="Anjo.Android.GoogleServices.AdsBase" Version="22.0.0" />
 <PackageReference Include="Anjo.Android.GoogleServices.AdsLite" Version="22.0.0" />

Supports fixing the problem of Loading ads using :