I'm working on Xamarin.Forms project, and after installing James Montemagno's Geolocator Plugin for Xamarin and Windows named Xam.Plugin.Geolocator
I got an error like this in Android project:
Severity Code Description Project File Line Suppression State Error
java.lang.IllegalArgumentException:
already added :
Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat;
What does it mean and how to solve this?
The error was thrown because I referenced Xamarin.Android.Support.Compat.25.4.0.2
in my .Droid project. It had nothing to do with Xam.Plugin.Geolocator
. Thanks to @sme and @Jon Douglas for helpful comments.
I managed to solve the error by updating the Xamarin.Android.Support.v4.23.3.0
to version Xamarin.Android.Support.v4.25.4.0.2
.