Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting unable to resolve interface type #13

Open
luqman-hussain opened this issue Jan 7, 2023 · 2 comments
Open

Getting unable to resolve interface type #13

luqman-hussain opened this issue Jan 7, 2023 · 2 comments

Comments

@luqman-hussain
Copy link

luqman-hussain commented Jan 7, 2023

When using for Interstitial ads getting as:

IAdManager ads = new AdMobAdapter(mainActivity,
interstitialAdID: _interstialTestAd);

ads.DisplayInterstitialAd();

Getting:

Unable to resolve interface type 'Android.Gms.Ads.IOnUserEarnedRewardListener'. Are you missing an assembly reference?	
Unable to resolve interface type 'Android.Gms.Ads.Initialization.IOnInitializationCompleteListener'

Am i missing something?

@dmanning23
Copy link
Owner

I'll take a look at it. It probably has to do with the version of the Xamarin binding library... what version of the Xamarin.GooglePlayServices.Ads.Lite nuget package are you using?

Google did a huge refactor of the AdMob android package last year, and Microsoft is still trying to fix their wrapper last time I checked. I've been putting off updating this library because their latest versions of the binding library have been broken.

@luqman-hussain
Copy link
Author

hiya. thanks.
i tried multiple different versions of Xamarin.GooglePlayServices.Ads.Lite . even older ones .
didnt seem to work with any. If you can check which most up to date one it definitely works with that would be ideal.

Repository owner deleted a comment from rnoh96 Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants