building a native app with flutter
Steps
- Start Android Studio.
- File>Settings>Plugins.
- Select Browse repositories…, find the Flutter and install it.
- Click Restart to restart Android Studio.
- File> New> New Flutter Project. And choose Flutter Application.
- Type the project name my_flutter_app and click Install SDK to choose the installed path.
- Choose a project location doesn’t contain whitespace. If it contains whitespace, it will cause problems with the NDK tools.
- Click Next button.
- Add a support for Swift and Kotlin(if necessary). Click Finish button.
FAQ
- Q. When I create flutter project, I get “Flutter create command was unsuccessful”.
- A.
- Execute the command
bin\flutter doctor --android-licenses
.
Error: The Flutter directory is not a clone of the GitHub project.
The flutter tool requires Git in order to operate properly;
to set up Flutter, run the following command:
git clone -b stable https://github.com/flutter/flutter.git
- git clone -b stable https://github.com/flutter/flutter.git
- Execute the command again
bin\flutter doctor --android-licenses
. It will build flutter tool.
- Then it worked when I create flutter project.
Reference
Tagged with
flutter