Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nuget Cant install Xamarin.Android.Support.Animated.Vector.Drawable 27.0.2

I am running into an issue when updating installed Nuget packages in my Xamarin.Android project. When running the updates, I get the following error:

Could not install package 'Xamarin.Android.Support.Animated.Vector.Drawable 
27.0.2'. You are trying to install this package into a project that targets 
'MonoAndroid,Version=v8.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.

A quick google search yielded several results with similar answers like the one found in this question. It seemed that I simply needed to make sure my Target Framework was set high enough.

Following the instructions found here I set out to change the Target Framework in Visual Studio 2017, however I found that it was already set to use 8.0.

Target framework already set!

Is there another step that I am missing in order to get these packages to update?

like image 770
James Hogle Avatar asked Apr 05 '18 03:04

James Hogle


2 Answers

As Jon Douglas mentioned, API 27 actually requires Android 8.1. If you don't have the option to switch to 8.1 you will need to update Visual Studio. Once that is done, you should be able to install the 8.1 SDK via the Android SDK manager (Tools -> Android -> Android SDK Manager).

Android SDK manager screenshot

After the SDK is installed, you can set your Target Framework to 8.1 and update the Nuget packages.

like image 103
Caleb Powell Avatar answered Sep 28 '22 18:09

Caleb Powell


you have to change your Mono.Android.dll Version to 8.1, Check here

like image 34
Krunal Bagadia Avatar answered Sep 28 '22 18:09

Krunal Bagadia