用ss,不要用 Lantern 或 Linsoc
- 检查plugin, 运行dry-run命令以查看是否所有分析都通过:
flutter pub publish --dry-run
flutter pub publish 报错 加 sudo 解决
// Failed to upload the package.
// pub finished with exit code 1
sudo flutter packages pub publish -v
上传 plugin 前
临时在当前终端干掉这两个环境变量 !!!!
unset FLUTTER_STORAGE_BASE_URL;unset PUB_HOSTED_URL
flutter packages pub publish --server=https://pub.dartlang.org
网友评论