For window user,
Set environment variable of Flutter SDK(...\flutter_windows_v0.2.8-beta.zip\flutter\bin)
No device connect
For more information, you can check here http://www.developerlibs.com/2018/05/flutter-introduction-and-setup.html
Here is the info from the mentioned page:
Add Flutter to Windows Environment variable Path
- Navigate in to Flutter SDK folder.
- Go inside to bin folder and copy the directory path (in your case C:\Flutter\bin)
- Go to “Control Panel > User Accounts > User Accounts > Change my environment variables”
- Under “User variables” select path variable and click edit.
- Put C:\Flutter\bin and apply.
Same as Flutter Environment, we have to set the Android SDK path if it is on custom location.
- Navigate into the Android SDK folder.
- Copy the directory path (in your case ..AndroidStudioSDK\sdk)
- Go to “Control Panel > User Accounts > User Accounts > Change my environment variables”
- Under “User variables” select path variable and click edit.
- Put ..AndroidStudioSDK\sdk with ANDROID_HOME and apply.
Tips:
If you facing the following issue,
1.[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from https://developer.android.com/studio/index.html
On the first launch, it will assist you in installing the Android SDK components.
(or visit https://flutter.io/setup/#android-setup for detailed instructions).
If Android SDK has been installed to a custom location, set $ANDROID_HOME to that location.
You can resolve it with the following command.
flutter config --android-sdk <android-sdk-location>
OR
flutter config --android-sdk "android-sdk-location"
- Error: Unknown argument --licenses
You can resolve it with Following Command.
flutter -v doctor --android-licenses
Now, Pick the emulator you want to use and click the green arrow to run the project. So, here default screen that is already designed.
flutter devices
to check if flutter can find any devices or not – denvercoder9 Mar 1 '18 at 10:17