Cannot install Xamarin.Android.Support.v4

I am trying to install this specific package in my program and get the following error:

Error Failed to install package "Xamarin.Android.Support.Compat 24.2.1. You are trying to install this package in a project that targets" MonoAndroid, Version = v6.0 ", but the package does not contain any links to the assembly or content files, compatible with this framework For more information, contact the author of the package.

What exactly is my suppost project aiming for and how to do it? I have already installed Android 7, however I cannot even configure it for some strange reason. Even if I create a new project, I can’t target.

+8
android nuget packages xamarin
source share
4 answers

This package requires MonoAndroid70 . So you have to make sure your TargetFrameworkVersion installed at least on Android 7.0. You will need to install API 24 (7.0) and change the version.

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

For those interested in how you find this, you can download .nupkg from NuGet:

https://www.nuget.org/api/v2/package/Xamarin.Android.Support.v4/24.2.1

You can then extract .nupkg and look at the lib folder, which will show you what the library supports.

+10
source share

I recommend below steps

1- download the previous version (

 <package id="Xamarin.Android.Support.v4" version="23.1.1.1" targetFramework="monoandroid60" /> 

)

2- delete the following local folder ".. \ AppData \ Local \ Xamarin"

3- Create a droid project (this will take several times)

Finally, no more problems with these xamarin support packages.

Greetings UP!

+1
source share

Decision:

  • Try updating your xamarin visual studio after installing it and you will get monoandroid v7
  • update your android sdk api 24 or api 25

I think this will help you.

+1
source share

I removed all API 23 dependencies from the Android SDK, that is, Android 6.0 and installed with 7.0 and 7.1 (AP 24 and 25).

Clean and rebuild the project.

It is made that it worked correctly. Hope this helps.

0
source share

All Articles