Skip to content

Instantly share code, notes, and snippets.

@jimmgarrido
Last active October 2, 2018 07:37
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jimmgarrido/a05ffe571230eb279266aeb0e5fb2ad2 to your computer and use it in GitHub Desktop.
Save jimmgarrido/a05ffe571230eb279266aeb0e5fb2ad2 to your computer and use it in GitHub Desktop.
Broken Support Library Download Workaround

1. Go to %LOCALAPPDATA%\Xamarin

2. If it doesn't already exist, create a new folder named after the support library NuGet package, e.g. Xamarin.Android.Support.v4

3. Repeat for every support library package in your project:

4. Open the Xamarin Android SDK Manager and download the Android Support Repository (under Tools > Extras):

5. Go to [Android SDK location]\extras\android\m2repository\com\android\support and open the directory for the support library you need

6. Find the correct version and copy the entire folder to directory you created in step 2. The correct version is the one that matches or is nearest to the NuGet package version. For example, if the package version is 23.4.0.1 the support library version would be 23.4.0. If you did not create a folder in step 2, then there may already be a folder in there with the correct version you should use.

7. Open the folder you copied over and rename the .aar file to embedded.zip

8. Extract the zip file. It should create a folder named embedded and extract the contents there:

9. Repeat from step 5 for any remaining support packages

10. Clean and rebuild your project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment