Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.2之后版本依赖报错 #6

Open
hellokugo opened this issue Apr 25, 2020 · 7 comments
Open

1.0.2之后版本依赖报错 #6

hellokugo opened this issue Apr 25, 2020 · 7 comments

Comments

@hellokugo
Copy link

pubspec.yaml添加依赖报错了,测试发现1.0.1没有问题,1.0.2开始出现问题,报错如下:

__MACOSX/flutter_verification_box/._README.md: Truncated tar archive
tar: Error exit delayed from previous errors.

Failed to extract .tar.gz stream to /Users/flutter/.pub-cache/_temp/dir24yhNG (exit code 1).

package:pub/src/io.dart 873:5 extractTarGz

===== asynchronous gap ===========================

package:pub/src/source/hosted.dart 323:11 BoundHostedSource._download

===== asynchronous gap ===========================

package:pub/src/source/hosted.dart 217:13 BoundHostedSource.downloadToSystemCache

package:pub/src/entrypoint.dart 388:48 Entrypoint._get.
dart:async runZoned
package:pub/src/http.dart 272:10 withDependencyType

package:pub/src/entrypoint.dart 384:12 Entrypoint._get

dart:async Future.wait

package:pub/src/entrypoint.dart 245:18 Entrypoint.acquireDependencies
dart:async _completeOnAsyncReturn

package:pub/src/solver/version_solver.dart VersionSolver.solve

dart:async _completeOnAsyncReturn

下载1.0.2的.tar.gz包发现也解压不了,一开始怀疑电脑的gzip出问题了,但是试过其他第三方库是可以正常解压,brew install gzip重新安装gzip也一样不行,目前只能拿源码clone到本地玩了

@LaoMengFlutter
Copy link
Owner

这个应该是环境的问题

@Mockingbird1234
Copy link

一样的问题,只有1.0.0版本,var result = await _channel.invokeMethod('getAppInfo');这句话会抛出错误。

@LaoMengFlutter
Copy link
Owner

你们2这都不是同一个插件,app更新到最新版本就可以了,这个问题修复了

@LaoMengFlutter
Copy link
Owner

把缓存删除重新flutter get下试试

@hellokugo
Copy link
Author

我在https://pub.dev/packages/flutter_verification_box/versions下载的包也是有问题的,不能解压

应该是压缩包上传出现问题,1.0.1没有问题。clone到本地玩吧

@AshaLiu
Copy link

AshaLiu commented Sep 7, 2020

1.0.3也遇到了这样的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants