Flutter — moving projects — Android Studio

Aron Nelson
1 min readMay 14, 2020

--

I find it hard to believe that by simply moving your flutter project file from one machine to another, or even from one folder to another can cause the project to be unable to run in Android Studio for Macintosh. The symptoms can be: Dart not configured, no virtual device/emulator to choose from; cannot run main.dart. (This was with Android Studio 3.6.3–5–14–20) Android studio also crashes unless you drag the project folder onto the icon of Android Studio in the dock!!!!

After searching, here is the fix:

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

That’s it! If you didn’t know this, it is a frustrating experience. I hope this helps!

--

--