[英]Flutter Pubspec.yaml Warning: Publishable packages can't have git dependencies
[英]Flutter/Git — Help replacing package in 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...
我給開發人員發了消息,他說:“ package 已移至https://github.com/mwaylabs/flutter-apns ,您需要編輯 pubspec.Z6EEDC03A68A692933C763E674 文件並替換它”
以下是pubspec.yaml的內容: https://pastebin.com/n0dr7sEM
我真的不知道他到底要我做什么,但我嘗試了一些事情,但都沒有奏效。
有人可以幫助我了解要更改的內容嗎?
刪除pubspec.lock
和~/.pub-cache
然后再試一次。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.