Googleplayservicescomponents: Xamarin.Firebase.Ads 71.1620.0 leads to compile error

Created on 21 Jul 2019  路  12Comments  路  Source: xamarin/GooglePlayServicesComponents

Steps to Reproduce

  1. Update Firebase and Google Play Services from 60.1142.1 to 71.1620.0
  2. Build an Android project
  3. Observe the error

Expected Behavior

The project should build.

Actual Behavior

Build error:

4>  obj\Debug\90\android\src\mono\com\google\android\gms\ads\reward\mediation\MediationRewardedVideoAdListenerImplementor.java:4: error: MediationRewardedVideoAdListenerImplementor is not abstract and does not override abstract method zzc(Bundle) in MediationRewardedVideoAdListener
4>  public class MediationRewardedVideoAdListenerImplementor
4>         ^
4>  Note: Some input files use or override a deprecated API.
4>  Note: Recompile with -Xlint:deprecation for details.
4>  Note: Some input files use unchecked or unsafe operations.
4>  Note: Recompile with -Xlint:unchecked for details.
4>  1 error
4>C:\Operations\Build\Home\Sideroads\Source\Sideroads.Xamarin\Sideroads.Android\obj\Debug\90\android\src\mono\com\google\android\gms\ads\reward\mediation\MediationRewardedVideoAdListenerImplementor.java(4,8): error :  error: MediationRewardedVideoAdListenerImplementor is not abstract and does not override abstract method zzc(Bundle) in MediationRewardedVideoAdListener
4>C:\Operations\Build\Home\Sideroads\Source\Sideroads.Xamarin\Sideroads.Android\obj\Debug\90\android\src\mono\com\google\android\gms\ads\reward\mediation\MediationRewardedVideoAdListenerImplementor.java(4,8): error : public class MediationRewardedVideoAdListenerImplementor
4>C:\Operations\Build\Home\Sideroads\Source\Sideroads.Xamarin\Sideroads.Android\obj\Debug\90\android\src\mono\com\google\android\gms\ads\reward\mediation\MediationRewardedVideoAdListenerImplementor.java(4,8): error : 

Version Information

VS 2019 16.1.6

     <PackageReference Include="Xamarin.GooglePlayServices.Ads">
-      <Version>60.1142.1</Version>
+      <Version>71.1712.0</Version>

Log File

All 12 comments

same message to me

@mfeingol

Update Firebase and Google Play Services from 60.1142.1 to 71.1620.0

What is the starting point? Any Android app?

There is obfuscated method that changed the name, but your report does not help very much.

@moljac: apologies for the lack of details. I was hoping the issue would be obvious.

My own Xamarin Forms app has this problem. I haven't tried with a completely fresh app. I will do so.

@mfeingol
No need to apologize, just to be fast I (we) need more info.

I have almost zilch samples with 60.1142 version and searching will take me a lot of time.

Fix is building right now see current build:
https://dev.azure.com/xamarin/public/_build/results?buildId=4583

@moljac: it repros in a new project as soon as you add Xamarin.Firebase.Ads 71.1601.0. Here's a solution:

236.zip

@mfeingol Excellent. Thanks.

Testing.

And here are the nugets for testing for you:

https://dev.azure.com/xamarin/_apis/resources/Containers/4298666?itemPath=nuget&$format=zip

Need to test and if OK tag to trigger signed builds

Unfortunately I don't have access to that link. :-(

Hm he builds are public. I must check the rights for artifacts

@mfeingol Excellent. Thanks.

Testing.

And here are the nugets for testing for you:

https://dev.azure.com/xamarin/_apis/resources/Containers/4298666?itemPath=nuget&$format=zip

Need to test and if OK tag to trigger signed builds

The build is not accessible. What is the current workaround?

@motoko89 @mfeingol

Please update Xamarin.GooglePlayServices.Ads.Lite nuget package to 71.1712.1.

https://www.nuget.org/packages/Xamarin.GooglePlayServices.Ads.Lite/71.1712.1

And close this issue if the problem is solved

I built debug and release and it seems to work. Thanks for fixing this!

And as a side note, your app may crash following the upgrade. The solution is in the device log:

08-02 20:06:23.099  android_9_0 Error   6579    AndroidRuntime  ******************************************************************************
08-02 20:06:23.099  android_9_0 Error   6579    AndroidRuntime  * follow instructions here: https://goo.gl/h17b6x.                           *
08-02 20:06:23.099  android_9_0 Error   6579    AndroidRuntime  * App ID inside the AndroidManifest. Google Ad Manager publishers should     *
08-02 20:06:23.099  android_9_0 Error   6579    AndroidRuntime  * should follow the instructions here: https://goo.gl/fQ2neu to add a valid  *
08-02 20:06:23.099  android_9_0 Error   6579    AndroidRuntime  * The Google Mobile Ads SDK was initialized incorrectly. AdMob publishers    *
08-02 20:06:23.099  android_9_0 Error   6579    AndroidRuntime  ******************************************************************************

Those two links have the solution.

Was this page helpful?
0 / 5 - 0 ratings