Asked by:
Android Build Failure. Unzipping failed.

Question
-
User80438 posted
My Android project has suddenly started reporting the following build errors.
4>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1698,7): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file:
4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(290,2): error XA5209: Unzipping failed. Please download https://dl-ssl.google.com/android/repository/androidm2repositoryr14.zip and extract it to the C:\Users\Administrator\AppData\Local\Xamarin\Android.Support.v13\22.1.1\content directory. 4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(290,2): error XA5209: Reason: C:\Users\Administrator\AppData\Local\Xamarin\Android.Support.v13\22.1.1\androidm2repositoryr14.zip is not a valid zip file 4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(290,2): error XA5207: Please install package: 'Xamarin.Android.Support.v13' available in SDK installer. Java library file C:\Users\Administrator\AppData\Local\Xamarin\Android.Support.v13\22.1.1\embedded\classes.jar doesn't exist. 4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(290,2): error XA5209: Unzipping failed. Please download https://dl-ssl.google.com/android/repository/androidm2repositoryr14.zip and extract it to the C:\Users\Administrator\AppData\Local\Xamarin\Android.Support.v13\22.1.1\content directory. 4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(290,2): error XA5209: Reason: C:\Users\Administrator\AppData\Local\Xamarin\Android.Support.v13\22.1.1\androidm2repositoryr14.zip is not a valid zip file 4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(290,2): error XA5207: Please install package: 'Xamarin.Android.Support.v13' available in SDK installer. Java library file C:\Users\Administrator\AppData\Local\Xamarin\Android.Support.v13\22.1.1\embedded\libs/internalimpl-22.1.1.jar doesn't exist. 4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(290,2): error XA5209: Unzipping failed. Please download https://dl-ssl.google.com/android/repository/androidm2repositoryr14.zip and extract it to the C:\Users\Administrator\AppData\Local\Xamarin\Android.Support.v13\22.1.1\content directory. 4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(290,2): error XA5209: Reason: C:\Users\Administrator\AppData\Local\Xamarin\Android.Support.v13\22.1.1\androidm2repositoryr14.zip is not a valid zip file 4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(290,2): error XA5206: Please install package: 'Xamarin.Android.Support.v13' available in SDK installer. Android resource directory C:\Users\Administrator\AppData\Local\Xamarin\Android.Support.v13\22.1.1\embedded./ doesn't exist. 4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(290,2): error XA5209: Unzipping failed. Please download https://dl-ssl.google.com/android/repository/androidm2repositoryr14.zip and extract it to the C:\Users\Administrator\AppData\Local\Xamarin\Android.Support.v4\22.1.1\content directory. 4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(290,2): error XA5209: Reason: C:\Users\Administrator\AppData\Local\Xamarin\Android.Support.v4\22.1.1\androidm2repositoryr14.zip is not a valid zip file 4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(290,2): error XA5207: Please install package: 'Xamarin.Android.Support.v4' available in SDK installer. Java library file C:\Users\Administrator\AppData\Local\Xamarin\Android.Support.v4\22.1.1\embedded\classes.jar doesn't exist. 4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(290,2): error XA5209: Unzipping failed. Please download https://dl-ssl.google.com/android/repository/androidm2repositoryr14.zip and extract it to the C:\Users\Administrator\AppData\Local\Xamarin\Android.Support.v4\22.1.1\content directory. 4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(290,2): error XA5209: Reason: C:\Users\Administrator\AppData\Local\Xamarin\Android.Support.v4\22.1.1\androidm2repositoryr14.zip is not a valid zip file 4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(290,2): error XA5207: Please install package: 'Xamarin.Android.Support.v4' available in SDK installer. Java library file C:\Users\Administrator\AppData\Local\Xamarin\Android.Support.v4\22.1.1\embedded\libs/internalimpl-22.1.1.jar doesn't exist. 4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(290,2): error XA5209: Unzipping failed. Please download https://dl-ssl.google.com/android/repository/androidm2repositoryr14.zip and extract it to the C:\Users\Administrator\AppData\Local\Xamarin\Android.Support.v4\22.1.1\content directory. 4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(290,2): error XA5209: Reason: C:\Users\Administrator\AppData\Local\Xamarin\Android.Support.v4\22.1.1\androidm2repositoryr14.zip is not a valid zip file 4>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(290,2): error XA5206: Please install package: 'Xamarin.Android.Support.v4' available in SDK installer. Android resource directory C:\Users\Administrator\AppData\Local\Xamarin\Android.Support.v4\22.1.1\embedded./ doesn't exist.Does anyone know how best to fix this?
The project is part of a Xamarin Forms solution. I recently reinstalled my windows 8 VM and Visual Studio so I don't know if this is related.
Sunday, June 7, 2015 9:51 AM
All replies
-
User80438 posted
Btw I already have Package Xamarin.Android.Support.v4 selected as a nuget install.
Sunday, June 7, 2015 9:57 AM -
User80438 posted
Can anyone help me here?
Why is it saying "androidm2repositoryr14.zip is not a valid zip file" ?
Monday, June 8, 2015 10:47 AM -
User108286 posted
I just started having the same issue this morning too.
Monday, June 8, 2015 4:26 PM -
User52117 posted
Following this SO post worked for me. Basically, delete the 22.2.0 folder in
/Users/XXXX/.local/share/Xamarin/Android.Support.Design/22.2.0
or..\AppData\Local\Xamarin\Android.Support.Design\22.2.0
and rebuild, it will automatically generate all the files it is complaining about.Thursday, June 11, 2015 3:27 PM -
User132491 posted
Following this SO post worked for me. Basically, delete the 22.2.0 folder in /Users/XXXX/.local/share/Xamarin/Android.Support.Design/22.2.0 or ..\AppData\Local\Xamarin\Android.Support.Design\22.2.0 and rebuild, it will automatically generate all the files it is complaining about.
This worked for me. Thank you
Tuesday, June 23, 2015 1:09 AM -
User55529 posted
Thanks, now work correctly.
Monday, July 13, 2015 12:18 PM -
User31403 posted
OMG, it works for me. Thanks :)
Sunday, September 6, 2015 5:14 PM -
User134369 posted
@jonathonyates @LuanvanderWalt @ntayefeh
Jonathon, hi saw your post. I don't know whether my input will help you hugely in some way. But.
This specific thing: just keeps on happening to me. I mean, for you this has been the first time; but I keep getting it also periodically. And the case is such:
suppose you had started working/created a new project from scratch in VS2013. Then like, for 5-6 weeks you had worked on it through VS IDE itself. One day, unmindful, or owing to some particular specific need, or ease of doing something particular, you opened project in Xamarin Studio and as usual kept working, did some work, code. Now when you go press F7 to build: exactly this same thing happens. This is how it mostly happens to me at least. I kind of noticed this!
Monday, September 7, 2015 3:20 PM -
User180278 posted
I am also getting same error. i have tried deleting the folder but after building project again its create empty folder. Kindly help me for this issue. I am using MAC os
Monday, December 21, 2015 6:42 AM -
User186611 posted
This helped resolve it on a Mac for me - perhaps it may help: - Quit Xam Studio. - In the finder [shift]+[command]+[g] (go to folder): Go to /Users/xxxx/.local/share/Xamarin/zips - Then delete all the zip files in there - (reckon they were corrupt during package download) - Reopen Xam Studio Rebuild All - Run Project
Friday, January 15, 2016 7:06 PM -
User186611 posted
If that doesn't help: - after deleting the zip files in the /Users/xxx/.local/share/Xamarin/zips folder - make a note of the package that's giving you problems in Xam studio - right-click and remove it from the packages folder - right-click the Packages folder and select add package.. - find the package you just removed (and made a note of) + re-install - clean project - run project
Hope that helps
Friday, January 15, 2016 7:23 PM -
User191024 posted
@TobyEsterhuizen Thank you! It works for me
Friday, January 29, 2016 3:10 AM -
User192500 posted
This is not working for me
Monday, February 8, 2016 1:18 PM -
User164240 posted
Hi All,
Is any one resolved the issue [Xamarin.Android.Support.v4'].If yes could you please let us know the solution for it.
Issues: C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2,2): Error XA5208: Download failed. Please download https://dl-ssl.google.com/android/repository/androidm2repositoryr25.zip and put it to the C:\Users\username\AppData\Local\Xamarin\Android.Support.v4\23.1.1.0 directory. (XA5208)
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2,2): Error XA5207: Please install package: 'Xamarin.Android.Support.v4' available in SDK installer. Java library file C:\Users\ravipkr\AppData\Local\Xamarin\Android.Support.v4\23.1.1.0\embedded\classes.jar doesn't exist. (XA5207) (Events.Droid)
What I did is that I manually downloaded the androidm2repositoryr25.zip and kept in 23.1.1.0,even though I am facing same problem.
Do we need to create the "embedded" folder inside 23.1.1.0?
Please share it
Monday, April 4, 2016 11:12 AM -
User198818 posted
Hi KoteswararaoRavipati,
also tried to install the Xamarin.Android.Support.v4 via Nuget Paket Manager. Just Deleting the (empty) folder in \AppData\Local\Xamarin\Android.Support.v4 as described above didn't solve the problem. I also had to delete all .zip Files in \AppData\Local\Xamarin\zips. Then I reinstalled Xamarin.Android.Support.v4 via Nuget Paket Manager. After that it took a long time to build but it was successfull. I hope this helps
Wednesday, April 13, 2016 8:27 AM -
User170691 posted
Following this SO post worked for me. Basically, delete the 22.2.0 folder in /Users/XXXX/.local/share/Xamarin/Android.Support.Design/22.2.0 or ..\AppData\Local\Xamarin\Android.Support.Design\22.2.0 and rebuild, it will automatically generate all the files it is complaining about.
This will work but it take a time to build. Basically, it is Downloading 150MB file.
Wednesday, April 13, 2016 6:07 PM -
User164240 posted
Hi SebastianWilkes,
Thanks for your reply.I don't see any files under zips folder in the below mentioned path
Path: /Users/xxxx/AppData/Local/Xamarin under this folder i have Android.Support.v4 and Android.Support.v7.AppCompat,Logs,Mono for Android and zips folder.
but I didn't see any data inside Android.Support.v4 and Android.Support.v7.AppCompat and zips folder.Is there any thing wrong in the installation setup of Visual Studio along with Xamarin.
Thursday, April 28, 2016 6:36 AM -
User223656 posted
Resolved:
I was having the issue in build Please install Xamarin.Android.support.v4
I simply deleted the folder C:\Users\username\AppData\Local\Xamarin\Android.Support.v4 directory after this solution build successfully
Wednesday, May 11, 2016 6:54 AM -
User223656 posted
@mubi said: Resolved:
I was having the issue in build Please install Xamarin.Android.support.v4
I simply deleted the folder C:\Users\username\AppData\Local\Xamarin\Android.Support.v4 directory after this solution build successfully
Wednesday, May 11, 2016 6:59 AM -
User223656 posted
Attention
One more thing I want to update new developers like me This "Not a valid package issue" arises due to a mistake. Sometimes it takes too much time to process build. Try not to cancel the build process because Zip files miss their completion point and get damage. If it happens delete the corrupt Zip files and rebuild it again
Wednesday, May 11, 2016 7:19 AM -
User161514 posted
I don't understand why we can't have all these dependencies be Nuget packs. Can someone from Xamarin explain this? even components being a different kind of entity seems strange to me.
Maybe now that Xamarin is a part of MS we can just unify the idea of dependencies into a single way of doing things?
Sunday, June 12, 2016 7:46 PM -
User245597 posted
I have same issue with visual studio. I tried to delete zip file from zip folder. when i build my app then 'C:\Users\Vikas\AppData\Local\Xamarin\Xamarin.Android.Support.v4\23.3.0.0' folder create automatically. Is there any issuse
Friday, July 29, 2016 12:34 PM -
User257306 posted
android support library v4 doesnt exist
Thursday, September 15, 2016 11:43 AM -
User261197 posted
I'm working on a Xamarin.Forms project in Xamarin.Studio on a Mac, and this was the only solution that has worked for me. Thank you Toby for posting this for Mac users! This was the first time I found someone even point out where my Xamarin zip files are hidden. I lost a day of work just trying to figure out why my Android project won't build....THANKS TOBY!!!!!!
@TobyEsterhuizen said: This helped resolve it on a Mac for me - perhaps it may help: - Quit Xam Studio. - In the finder [shift]+[command]+[g] (go to folder): Go to /Users/xxxx/.local/share/Xamarin/zips - Then delete all the zip files in there - (reckon they were corrupt during package download) - Reopen Xam Studio Rebuild All - Run Project
Thursday, October 27, 2016 3:01 PM