Skip to content Skip to sidebar Skip to footer

Failed To Use Android Support Library V4

I'm trying to use the DrawerLayout from android.support.v4 library. I have added Xamarin.Android.Support.v4 package using Nuget but I'm still not able to compile the application an

Solution 1:

For me this was caused by killing VS during the initial build of my first Xamarin project after a reinstall.

It looked as though the process had hung, but apparently it was downloading from google at a slow rate.

Quit Visual studio

Delete / rename c:\Users\username\AppData\Local\Xamarin

Open the solution again

Clean the solution

Compile, wait until it finishes completely.

On Windows, use Resource Monitor to determine if a download is in progress.

MSBuild will be downloading from something.1e100.net.

Solution 2:

It should just work by adding the NuGet package.

A couple of things to check.

  1. The full path to the files it cannot find if you are on a Windows file system cannot be more than 255 characters long
  2. Remove the NuGet package and try adding it again to see if that helps
  3. Make sure you have latest stable version of all the tools
  4. Make sure everything is ok in your Android SDK installation

Solution 3:

I had exactly this problem, and for me too this was a corrupt zip download - it was truncated. Because the zip was corrupt, it then didn't extract it and started complaining. Solution? download manually and replace the broken zip file (for me found here: C:\Users[User]\AppData\Local\Xamarin\Android.Support.v4\23.0.1.3)

Post a Comment for "Failed To Use Android Support Library V4"