Open ramchn opened 4 years ago
I run into the same error after a down and upgrade of the flutter sdk
flutter upgrade
Upgrading Flutter to 3.16.0 from 3.13.9 in /Users/rekire/dev/flutter...
Downloading Darwin arm64 Dart SDK from Flutter engine 74d16627b940bb15e50891f82cad6c3e3465bd6d...
[... unrelated ...]
Downloading darwin-arm64 tools... 5,1s
[/Users/rekire/dev/flutter/bin/cache/downloads/storage.googleapis.com/flutter_infra_release/flutter/74d16627b940bb15e50891f82cad6c3e3465bd6d/darwin-arm64/artifacts.zip]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /Users/rekire/dev/flutter/bin/cache/downloads/storage.googleapis.com/flutter_infra_release/flutter/74d16627b940bb15e50891f82cad6c3e3465bd6d/darwin-arm64/artifacts.zip or
/Users/rekire/dev/flutter/bin/cache/downloads/storage.googleapis.com/flutter_infra_release/flutter/74d16627b940bb15e50891f82cad6c3e3465bd6d/darwin-arm64/artifacts.zip.zip, and cannot find /Users/rekire/dev/flutter/bin/cache/downloads/storage.googleapis.com/flutter_infra_release/flutter/74d16627b940bb15e50891f82cad6c3e3465bd6d/darwin-arm64/artifacts.zip.ZIP, period.
Downloading darwin-arm64 tools... 4,2s
[/Users/rekire/dev/flutter/bin/cache/downloads/storage.googleapis.com/flutter_infra_release/flutter/74d16627b940bb15e50891f82cad6c3e3465bd6d/darwin-arm64/artifacts.zip]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /Users/rekire/dev/flutter/bin/cache/downloads/storage.googleapis.com/flutter_infra_release/flutter/74d16627b940bb15e50891f82cad6c3e3465bd6d/darwin-arm64/artifacts.zip or
/Users/rekire/dev/flutter/bin/cache/downloads/storage.googleapis.com/flutter_infra_release/flutter/74d16627b940bb15e50891f82cad6c3e3465bd6d/darwin-arm64/artifacts.zip.zip, and cannot find /Users/rekire/dev/flutter/bin/cache/downloads/storage.googleapis.com/flutter_infra_release/flutter/74d16627b940bb15e50891f82cad6c3e3465bd6d/darwin-arm64/artifacts.zip.ZIP, period.
Flutter could not download and/or extract https://storage.googleapis.com/flutter_infra_release/flutter/74d16627b940bb15e50891f82cad6c3e3465bd6d/darwin-arm64/artifacts.zip. Ensure you have network connectivity and all of the required dependencies listed at flutter.dev/setup.
The original exception was: ProcessException: The command failed
Switching to the beta and then back to the stable channel fixed the issue for me
Detailed error:
[tool_crash] ProcessException: The command failedStdout:Stderr:[/home/ramamoorthy/snap/flutter/common/flutter/bin/cache/downloads/storage.googleapis.com/flutter_infra/flutter/4654fc6cf6416daae78eac2c211ad84c46e21625/linux-x64/artifacts.zip] End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive.unzip: cannot find zipfile directory in one of /home/ramamoorthy/snap/flutter/common/flutter/bin/cache/downloads/storage.googleapis.com/flutter_infra/flutter/4654fc6cf6416daae78eac2c211ad84c46e21625/linux-x64/artifacts.zip or /home/ramamoorthy/snap/flutter/common/flutter/bin/cache/downloads/storage.googleapis.com/flutter_infra/flutter/4654fc6cf6416daae78eac2c211ad84c46e21625/linux-x64/artifacts.zip.zip, and cannot find /home/ramamoorthy/snap/flutter/common/flutter/bin/cache/downloads/storage.googleapis.com/flutter_infra/flutter/4654fc6cf6416daae78eac2c211ad84c46e21625/linux-x64/artifacts.zip.ZIP, period. Command: unzip, OS error code: 9
Command
Steps to Reproduce
Logs
Flutter Application Metadata
No pubspec in working directory.