What version of Xamarin.Android added Lollipop support?
Note: This guide was originally written for the Android L preview.
- Xamarin.Android 4.17 added Android L Preview support.
- Xamarin.Android 4.20 added Android Lollipop support.
Xamarin only actively supports the current stable release of the Xamarin tools. The information below is provided "as-is" for older versions of the tools. For the latest information on Xamarin releases, please check here.
"Missing android.jar for API Level 21" in Android L Preview
The following error message (or similar) may show up:
Error 1 Could not find android.jar for API Level 21.
This message means that the Android SDK platform for API Level 21 is not installed. Either install it in the Android SDK Manager (Tools > Open Android SDK Manager...), or change your Xamarin.Android project to target an API version that is installed.
There are a few workarounds for this issue:
Change your project so that it targets API 19 or lower.
Rename your android-21 folder from android-21 to android-L. (At best, this should only be used as a temporary fix, and it might not work very well at all.)
Temporarily downgrade back to the Android API Level 21 "L" preview :
- Delete the %LOCALAPPDATA%\Android\android-sdk\platforms\android-21
- Extract  into C:\Users\
\AppData\Local\Android\android-sdk\platformsto create an android-L folder.