Installing flutter
Installing the SDK
Please follow the Flutter website install guide for your platform, make sure you've completed the steps noted below: https://flutter.dev/docs/get-started/install
- Download the SDK
- Add Flutter to your OS PATH, so you can access the
flutter
command from terminal - Run
flutter doctor
and verify there are no major issues- Verify that Flutter recognizes your installed Android SDK.
- If you get some warnings, e.g. "Some Android licenses not accepted." then don't worry.
- If you are trying to run on a physical device and get
insufficient permissions for device: user in plugdev group; are your udev rules wrong?
Check here
Installing Android Studio plugins for Flutter
Open Android Studio, and go to Plugins management (File -> Settings -> Plugins ), and install:
- Flutter plugin
- Dart plugin
After installing them, you should restart Android Studio.
Create a new empty project and run it
Let's verify we installed everything correctly by trying to run a Flutter app.
- File -> New -> New Flutter Project
- Select "Flutter Application"
- Choose any name, notice the Flutter SDK path, it should match your installation
The running app looks like this: