I'm updating a Xamarin Forms Maps App. I'm currently experiencing this error:

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

It happens on this line within the MainActivity class:

Xamarin.FormsMaps.Init(this, bundle);

I currently have proguard configured to keep the GooglePlayServicesUtil class:

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

Here are my Android Nuget packages:

enter image description here

Here is my Android project config:

enter image description here

Any help would be much appreciated.

1

There are 1 best solutions below

1
Sach K On BEST ANSWER

I had to manually edit the project file to disable the multi-dex functionality. Disabling multi-dex and removing the code shrinker from the project properties did not do the trick.