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

Cannot build .NET6 app with Xamarin.GooglePlayServices.Ads.Lite #638

Closed
tipa opened this issue Jun 12, 2022 · 2 comments
Closed

Cannot build .NET6 app with Xamarin.GooglePlayServices.Ads.Lite #638

tipa opened this issue Jun 12, 2022 · 2 comments

Comments

@tipa
Copy link
Contributor

tipa commented Jun 12, 2022

Simply create a new Android .NET6 app and add the Xamarin.GooglePlayServices.Ads.Lite package (version 120.6.0.1):
App cannot be built with the errors below:

Error	JAVAC0000	 error: package com.google.android.ump.ConsentForm does not exist
		com.google.android.ump.ConsentForm.OnConsentFormDismissedListener

image

Demo app: testapp.zip

@jpobst jpobst transferred this issue from xamarin/XamarinComponents Jun 13, 2022
@tipa
Copy link
Contributor Author

tipa commented Jun 15, 2022

Looks like this has been reported previously here: #603
Will close it because it's a duplicate

@tipa tipa closed this as completed Jun 15, 2022
@mhdwaelanjo
Copy link

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 :

  • Let's rename for Interstitial ads InterstitialAdLoadCallback to AnjoInterstitialLoadCallback.
  • Let's rename for Rewarded ads RewardedAdLoadCallback to AnjoRewardedLoadCallback.
  • Let's rename for App Open Ads AppOpenAd.AppOpenAdLoadCallback to AnjoAppOpenLoadCallback.
  • Let's rename for Rewarded interstitial ads RewardedInterstitialAdLoadCallback to AnjoRewardedInterstitialLoadCallback.

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