I just create a small Xamarin.Forms sample application. When i build my Android project i get some errors. I just googled errors and find some solutions. But nothing works f
EDIT: This information is now included in our documentation: https://developer.xamarin.com/guides/android/troubleshooting/resolving-library-installation-errors/
You may run into issues with downloading the m2repository when referencing a NuGet package of the Android Support Libraries / Google Play Services.
Example error:
Download failed. Please download
https://dl-ssl.google.com/android/repository/android_m2repository_r25.zip
and put it to the
C:\Users\[Username]\AppData\Local\Xamarin\{SUPPORT LIBRARY NAME}\{VERSION NUMBER}
directory."
Mac Directory: /Users/[Username]/.local/share/Xamarin/
Windows Directory: C:\Users\[Username]\AppData\Local\Xamarin\
This example will be using Windows paths. This can be applied to either OS.
Given the following: C:\Users\[Username]\AppData\Local\Xamarin\
A folder for each of the respective Android Support Libraries / Google Play Services will be shown.


Note: In this example I'm showing all of the versions of Android.Support.v4
content and embedded:
content - Contains the m2repositoryembedded - Contains the respective .aar contentsMac Directory: /Users/[Username]/.local/share/Xamarin/{SUPPORT LIBRARY NAME}/{VERSION NUMBER}
Windows Directory: C:\Users\[Username]\AppData\Local\Xamarin\{SUPPORT LIBRARY NAME}\{VERSION NUMBER}
There are two steps to manually fixing this error.
m2repository folder to the /content folder..aar contents to the /embedded folder.Download the respective m2repository from google.
https://dl-ssl.google.com/android/repository/android_m2repository_r25.zip
Note: This version number will vary based on your error message.
android_m2repository_r25 folder.android_m2repository_r25 folder, we have a m2repository folder.m2repository into the {VERSION NUMBER}/content folder
m2repository folder, there is an .aar for the support library to be resolved. It can be found in the com\android\support directory:Example:
m2repository\com\android\support
support-v4\{VERSION NUMBER} which will contain the .aar file. .aar and put the contents into the embedded folder.Example:
m2repository\com\android\support\support-v4\23.1.1\support-v4-23.1.1 will contain items such as a aapt, aidl, assets, libs, res, AndroidManifest.xml, annotations.zip, and classes.jar. {VERSION NUMBER}/embedded folder.