将项目/文件夹混乱复制到另一台计算机 [英] copy project / folder flutter to another computer
问题描述
我将笔记本中正在开发的项目复制到台式计算机,但是文件夹中flutter sdk的安装路径不同,这会导致项目出错,因为编译器找不到sdk ..
我需要更改哪些文件以正确引用桌面上的新sdk路径。
I copied a project that I am developing in the notebook to my desktop computer, but the path where the flutter sdk is installed in the folder is different, and this caused several errors in the project, since the compiler does not find the sdk .. which files I need to change to correctly reference the new sdk path on the desktop.
推荐答案
删除 .gitignore
, android / .gitignore
和 ios /中列出的文件和文件夹。 gitignore
。它们会自动重新生成。
Delete the files and folders listed in .gitignore
, android/.gitignore
and ios/.gitignore
. They are regenerated automatically.
如果使用Git(GitHub)进行提交和克隆,由于 .gitignore,这些文件和文件夹将被自动省略。
文件。
If you use Git (GitHub) to commit and clone, these files and folders will be omitted automatically because of .gitignore
files.
更新
3个 .gitignore
文件统一在一个文件中。
The 3 .gitignore
files where unified into a single one.
相关问题> https://github.com/flutter/flutter/issues/26014
这篇关于将项目/文件夹混乱复制到另一台计算机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!