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=22.214.171.124, Culture=neutral, PublicKeyToken=null') from 'Xamarin.Android.Support.v7.AppCompat, Version=126.96.36.199, 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.