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