Xamarin: Please install package ‘Android Support Library’


My Xamarin Android project would not build.  The build output had the following exception/error.

Severity Code Description Project File Line Suppression State
Error Please install package: 'Xamarin.Android.Support.v4' available in SDK installer. Android resource directory C:\Users\{username}\AppData\Local\Xamarin\Android.Support.v4\22.2.0\embedded\./ doesn't exist.       C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets 349   

I started to get this error after adding the component Android Support Library v7 AppCompat (version

This component has dependencies on Xamarin.Android.Support.v4.

After much time and looking at Android SDK’s the resolution was to remove the respective zip file from this directory C:\Users\{username}\AppData\Local\Xamarin\zips. Once I did this, a fresh build would re-download this package and unzip appropriate references to C:\Users\{username}\AppData\Local\Xamarin.  In addition you can delete everything in the C:\Users\{username}\AppData\Local\Xamarin\Android.Support.v4 directory.






comments powered by Disqus


Recent Tweets

Retweeted by @dyardy Hey C# peeps, we’re trying C# in browser with reference content. Try it here: docs.microsoft.com/dotnet/csharp/… reply with feedback /cc @LadyNaggaga
23 Amazing Vintage Photographs Taken Inside WWII Tank Factories ~ vintage everyday vintag.es/2017/10/23-ama…
When is AI NOT Search? Artificiality intelligence==Search Engine (there cases when this is not true)
@projectedxyz Large data vs big data? Industry has so misused buzz words to sell products, and so you end up nothi… twitter.com/i/web/status/9…