'Xamarin Forms, Android - Java.Lang.ClassNotFoundException

I'm currently updating a Xamarin Forms App and suddenly experiencing this error on Android:

Exception   {Java.Lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.GooglePlayServicesUtil" on path: DexPathList[[zip file "/data/app/com.alphacoreconsulting.tflmetrosound-Ek3U1cNyzLe9Jayp9enzXQ==/base.apk"],nativeLibraryDirectories=[/data/app/c…} Java.Lang.ClassNotFoundException

It triggers on this line:

Xamarin.FormsMaps.Init(this, bundle);

I've researched and I've ensured all packages are the same version:

enter image description here

Please would anyone be able to offer some help on this?

UPDATE:

I have since updated the proguard.cfg file and added this line:

-keep public class com.google.android.gms.common.GooglePlayServicesUtil

After adding this I am now experiencing this error:

no static method "Lcom/google/android/gms/common/GooglePlayServicesUtil;.isGooglePlayServicesAvailable(Landroid/content/Context;)I"


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source