I am using FusedLocationApi in my app to get the current location. It compiles fine. It all works fine in Debug with "Don't Link" option. But in Release mode, when calling GetLastLocation function, I am getting the following error:
Error 3 The "LinkAssemblies" task failed unexpectedly.
Xamarin.Android.XamarinAndroidException: error XA2006: Reference to metadata item 'Android.Support.V4.Internal.View.ISupportMenu' (defined in 'Xamarin.Android.Support.v7.AppCompat, Version=188.8.131.52, Culture=neutral, PublicKeyToken=null') from 'Xamarin.Android.Support.v7.AppCompat, Version=184.108.40.206, Culture=neutral, PublicKeyToken=null' could not be resolved. ---> Mono.Cecil.ResolutionException: Failed to resolve Android.Support.V4.Internal.View.ISupportMenu
Obviously, if I set linking option to "Don't Link" in Release mode, everything works fine. But the result file is huge.
App target is API Level 21, min version is API Level 15.
Any help will be appreciated.