8

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

3 Answers 3

6

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

Sign up to request clarification or add additional context in comments.

Comments

4

I had the same problem.

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

Then it worked!

1 Comment

think I ran flutter pub get after flutter clean, then it worked for me!
0

Delete .gitignore files:- There will be 3 .gitignore files

  1. In main directory
  2. In android directory
  3. In IOS directory

I tried this procedure to run my flutter project which i built in fedora (linux) and copied and run in mac

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.