Problem installing nuget package

1

I'm working with MVVMCross and Xamarin.Android. And it seems that for some function (to do a binding of Mvx.MvxImageView) I need to install the package MvvmCross.Plugin.DownloadCache.

When trying to install it, it returns the following error:

  

The package 'Xamarin.Android.Support.Compat could not be installed   27.0.2 '. You are trying to install this package in a project that has 'MonoAndroid, Version = v5.0' as the destination, but the package does not   contains assembly references or content files   compatible with that framework. For more information, contact   Contact the package author.

Trying to install the package 'Xamarin.Android.Support.Compat 27.0.2 manually also gives me that error.

Can you help me?

    
asked by Brugui 13.04.2018 в 17:24
source

1 answer

3

This is because this package depends on Xamarin.Android.Support.Compat and in the android project you have a library Mono.Android.dll referenced with version 5.0 and they are not compatible.

You should know if the package you need has a lower version that does not use Xamarin.Android.Support.Compat or supports any other version in which the Xamarin.Android.Support.Compat package is compatible with your MonoAndroid.

In the package nuget MvvmCross.Plugin.DownloadCache browse down and you will see the section Dependencies see that you have the dependencies in your project and are compatible.

    
answered by 13.04.2018 в 17:32