-
Notifications
You must be signed in to change notification settings - Fork 147
Cannot use Xamarin.GooglePlayServices.Ads package because it produces a compile-time error #250
Comments
I can add that 71.1720.0 - preview6 doesn't have the issue |
Can confirm, 71.1712.1 did not have the issue, after updating to 71.1720.0, this error is now present during compile. |
error: MediationRewardedVideoAdListenerImplementor is not abstract and does not override abstract method zzb(Bundle) in MediationRewardedVideoAdListener |
I followed this tutorial and it does not work for me although since I posted this issue I downloaded this recent archive in the Releases page of this repo and built it. I wonder what is the difference between:
packages found in the If I use either package above I get the following compile error:
The file in the error is this (generated automatically):
The error part is from here:
If I remove the last
I get this error again:
|
@motoko89 Not regression, but similar. @silviubogan @lukealderton @VladislavAntonyuk Explanation: In preview I managed to bind 17.2.0, but due to some other updates (in other GPS artifacts) and missing external dependency version (TensorFlow.Lite, etc) I was forced to release with version 17.1.2. Between 17.1.2 and 17.2.0 the name of one of the obfuscated classes changed from zzc to zzb and that causes this error. here is the code (and comment) I fixed that and tagged 71.20190819 last night (CET): https://github.com/xamarin/GooglePlayServicesComponents/releases/tag/71.20190819 Just update to 71.1720.1 https://www.nuget.org/packages/Xamarin.GooglePlayServices.Ads.Lite/71.1720.1 And please let me know if that worked. Even better - close the issue if it is OK |
The issue is fixed |
@silviubogan @lukealderton @motoko89 |
@moljac This issue is solved although I have another issue: I have to build the packages from the latest tag you created because I figured out I have to use Xamarin.Firebase.Ads package or at least Xamarin.Firebase.Ads.Lite instead of Xamarin.GooglePlayServices.Ads and Xamarin.GooglePlayServices.Ads.Lite, and their NuGet version is not updated to this tag. If I fail to do this, I think I will open a new issue for updating the NuGet version. I hope it is OK. Thank you. When I use the package in your link above I get this exception:
Screenshot: |
@silviubogan |
Closing this one as resolved. |
Xamarin.Android Version (eg: 6.0):
Android 9.0 (Pie).
Operating System & Version (eg: Mac OSX 10.11):
Windows 10 Pro, latest update at the time of this writing, 1903.
Google Play Services Version (eg: 8.4.0):
49 in the Android SDK Manager.
Describe your Issue:
The steps below throw a compile-time error that should not exist or hopefully it could be avoided somehow.
Steps to Reproduce (with link to sample solution if possible):
Step 1. Create a new Xamarin.Forms project (Empty template; just for Android) (see the link at the end of the issue for the repo).
Step 2. In the Package Manager Console in VS2019 (with latest updates) run
Step 3. Press the Start button (it has the label
Samsung SM-G960F (Android 9.0 - API 28)
.Include any relevant Exception Stack traces, build logs, adb logs:
Output pane > Show output from
Build
:Test repository
https://github.com/silviubogan/testing-xamarin-ads
Update
I have seen that on GitHub there are updates not published in NuGet. How can I use them? I have discovered this page. Is it what I need?
The text was updated successfully, but these errors were encountered: