我将笔记本中正在开发的项目复制到台式计算机,但是文件夹中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.
相关问题> github/flutter/flutter/issues/26014
更多推荐
将项目/文件夹混乱复制到另一台计算机
发布评论