4
votes

My Visual studio 2017 nuget package can't install following error is occured in Xamarin.Forms Portable class library Project

Severity Code Description Project File Line Suppression State Error Could not install package 'Xamarin.Android.Support.Compat 25.3.1'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. 0

1

1 Answers

4
votes

Xamarin.Android.Support.Compat version 25.3.1 has dependencies of

  • MonoAndroid 7.0
  • Xamarin.Android.Support.Annotations (= 25.3.1)
  • Xamarin.Build.Download (>= 0.4.3)

Re: https://www.nuget.org/packages/Xamarin.Android.Support.Compat/25.3.1

You need to set the Target Framework to at least 7.0.

Re: https://developer.xamarin.com/guides/android/application_fundamentals/understanding_android_api_levels/#Target_Framework