Xamarin Please install package ‘Android Support Library’




- February 6, 2016

Rest of the Story:

  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 22.2.0.0) 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. image

image image