Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

copy project / folder flutter to another computer

Tags:

flutter

dart

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.

1

like image 498
cleiton Avatar asked Jun 20 '26 22:06

cleiton


2 Answers

Delete the files and folders listed in .gitignore, android/.gitignore and ios/.gitignore. They are regenerated automatically.

If you use Git (GitHub) to commit and clone, these files and folders will be omitted automatically because of .gitignore files.

Update

The 3 .gitignore files were unified into a single one.

Related issue https://github.com/flutter/flutter/issues/26014

like image 141
Günter Zöchbauer Avatar answered Jun 23 '26 15:06

Günter Zöchbauer


I had the same problem.

  1. Deleted .gitignore files
  2. Run flutter clean project

Then it worked!

like image 42
enumerator Avatar answered Jun 23 '26 15:06

enumerator