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

Maybe resolved itself, after resetting emulator and couple vs.net restarts - will let you know
@MillerMark A few weeks ago you tweeted that something huge/incredible was coming....what is/was it? (I am hoping s… twitter.com/i/web/status/9…
Oddly, it won't hit breakpoints in XF .net standard 2 project now either
@JamesMontemagno Updated to 15.7 preview 2 Visual Studio - now having lots of odd thread issues when starting debug… twitter.com/i/web/status/9…