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.

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
I had the same problem.
.gitignore filesflutter clean projectThen it worked!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With