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

@jeffrey_doucet @Brian_Bancroft Canadians, self define themselves as NOT American, rather than being Proud Canadians
Retweeted by @dyardy Why do so many Canadians obsess over American policy that won’t impact us while being fairly ambivalent to day-to-d… twitter.com/i/web/status/9…
@melrobbins I was looking for 50$ earlier today, and still can't find it...ideas :)
Trump Watches Up To 8 Hours Of TV Per Day | HuffPost #SmartNews ===that explains everything huffingtonpost.com/entry/trump-te…
Retweeted by @dyardy Boston https://t.co/QmtMIF8P0F