简体   繁体   中英

How to fix Flutter project not being able to run after moving from another machine - Android Studio 3.6.3 MacOS

Whenever I move a flutter project from one Macintosh to another or even within the same Macintosh, the flutter project complains in several ways. Dart not configured, no emulator/device to choose from and unable to run main.dart. Also sometimes cannot find runner. How do I fix this?

After moving a project from another computer or even from another folder!

1: Enable dart Support (it will prompt you) 2: Run 'flutter pub get' in terminal in the project root directory (remove the quotes in terminal) 3: Go to Preferences->Language & Frameworks -> Flutter and set the flutter SDK path

If necessary, close and open project again in Android Studio.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM