我正在macOS上构建Flutter项目,然后必须将项目移至Windows Server 2012 R2进行API请求,因此我将Flutter安装在Windows中,我创建了一个可以正常工作的初始项目,然后尝试首先运行我的项目我运行“ flutter包获取”时 ,。/ packages文件出现错误,并且试图在每5秒更新一次更新pub时出现错误,所以我现在按Ctrl + c,当我运行任何flutter命令时都没有出现没有错误,没有结果怎么办??
When you copy a Flutter project from one machine to another, without using Git ( git clone ....
), then you need to delete all directories and files listed in the .gitignore
file in your project (if the project was created with an older Flutter version another .gitignore
file might be in ios/
and android/
- also delete the files and directories listed there).
.gitignore
lists all files and directories that are specific to your machine and are generated on demand anyway, so there is no need to persist them.
It would be better to use Git even if you don't use GitHub or similar cloud services. You can use it only with a shared repository on a network share or even a repository on your local drive.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.