微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Flutter/Git — 帮助替换 pubspec.yaml 中的包

如何解决Flutter/Git — 帮助替换 pubspec.yaml 中的包

我正在尝试在 https://github.com/Zchandev/iChan 编译开源应用程序。他在那里给出指示,看起来很简单。

在步骤 Flutter pub get 我收到以下错误

compile@compile-VirtualBox:~/snap/Flutter/common/Flutter/iChan$ Flutter pub get
Git error. Command: `git clone --mirror git@github.com:FloPMT/Flutter-apns.git /home/compile/snap/Flutter/common/Flutter/.pub-cache/git/cache/Flutter-apns-31bb8f58633cb76118f15fafa15ad338ddc962c1`
stdout:                                                                 
stderr: cloning into bare repository '/home/compile/snap/Flutter/common/Flutter/.pub-cache/git/cache/Flutter-apns-31bb8f58633cb76118f15fafa15ad338ddc962c1'...
Warning: Permanently added the RSA host key for IP address '140.82.112.3' to the list of kNown hosts.
git@github.com: Permission denied (publickey).                          
fatal: Could not read from remote repository.                           
                                                                        
Please make sure you have the correct access rights                     
and the repository exists.                                              
exit code: 128                                                          
pub get Failed (server unavailable) -- attempting retry 1 in 1 second...

我给开发人员发了消息,他说:“该软件包已移至 https://github.com/mwaylabs/flutter-apns,您需要编辑 pubspec.yaml 文件并替换它

以下是pubspec.yaml的内容https://pastebin.com/n0dr7sEM

我真的不知道他要我做什么,但我尝试了一些东西,但没有一个奏效。

有人可以帮助我了解要更改的内容吗?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。