Bug 27355 - Google Analytics (3.10.0.2). Error downloading component: Cannot find central directory.
Summary: Google Analytics (3.10.0.2). Error downloading component: Cannot find central...
Status: RESOLVED ANSWERED
Alias: None
Product: Components
Classification: Xamarin
Component: Xamarin Studio Integration ()
Version: Staging (addons.xamstage.com)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Matt Ward
URL:
Depends on:
Blocks:
 
Reported: 2015-02-24 09:56 UTC by Seifer
Modified: 2015-02-24 16:46 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description Seifer 2015-02-24 09:56:30 UTC
Steps to reproduces:
1. Create an empty Unified iOS project
2. Try to add Google Analytics 3.10.0.2 component from Xamarin Component Store

Actual result:
"Error downloading component: Cannot find central directory"

Log:

INFO: Did not find manifest for component googleanalytics-3.0.10.2, reinstalling it
DEBUG: Download cache: Getting 'googleanalytics-3.0.10.2.info'
DEBUG: Download cache: 'googleanalytics-3.0.10.2.info' already downloaded
DEBUG: Component 'googleanalytics' entered state 'Resolved' (was: Unresolved)
DEBUG: Download cache: Getting 'googleanalytics-3.0.10.2.png'
DEBUG: Download cache: 'googleanalytics-3.0.10.2.png' already downloaded
DEBUG: Component 'googleanalytics' entered state 'ResolvedWithIcon' (was: Resolved)
DEBUG: Solution component cache: getting 'googleanalytics-3.0.10.2'
DEBUG: Solution component cache: fetching 'googleanalytics-3.0.10.2' from downloader
DEBUG: Download cache: Getting 'googleanalytics-3.0.10.2.xam'
DEBUG: Download cache: 'googleanalytics-3.0.10.2.xam' already downloaded
DEBUG: Component 'googleanalytics' entered state 'Unpacked' (was: ResolvedWithIcon)
ERROR: Component 'googleanalytics' entered state 'DownloadError' (was: Unpacked) [[ ICSharpCode.SharpZipLib.Zip.ZipException: Cannot find central directory
  at ICSharpCode.SharpZipLib.Zip.ZipFile.ReadEntries () [0x0029c] in /private/tmp/source-mono-mac-3.12.0-branch-32/bockbuild-mono-3.12.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.12.0/mcs/class/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib/Zip/ZipFile.cs:407 
  at ICSharpCode.SharpZipLib.Zip.ZipFile..ctor (System.String name) [0x00020] in /private/tmp/source-mono-mac-3.12.0-branch-32/bockbuild-mono-3.12.0-branch/profiles/mono-mac-xamarin/build-root/mono-3.12.0/mcs/class/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib/Zip/ZipFile.cs:226  ]]


Environment:

Xamarin Studio
Version 5.7.1 (build 17)
Runtime:
	Mono 3.12.0 ((detached/de2f33f)
	GTK+ 2.24.23 (Raleigh theme)
	Package version: 312000076

Apple Developer Tools
Xcode 6.1.1 (6611)
Build 6A2008a

Xamarin.iOS
Version: 8.6.1.26 (Business Edition)
Hash: 98ee412
Branch: 
Build date: 2015-02-11 04:37:05-0500
Comment 1 Matt Ward 2015-02-24 15:49:25 UTC
Looks like there is a problem unzipping the component's zip file. Possibly it was not downloaded fully. Can you find the googleanalytics-3.0.10.2.xam file in the directory ~/Library/Caches/Xamarin/Components, rename this file and then try the install again.
Comment 3 Jon Goldberger [MSFT] 2015-02-24 16:46:07 UTC
Marking as resolved as the customer reported that Matt's answer worked to resole this issue.