In this tutorial, we will install Flutter and configure it, without installing Android Studio or any device emulator.
- Access to system environment.
- VS Code and Flutter extension.
First let's create a folder called src or something you want in our C drive.
Now let's go to install the Flutter SDK. We proceed to enter to the C:\src folder and run
git clone https://github.com/flutter/flutter.git
the Flutter sdk starts to download.
When the Flutter sdk has been downloaded, type "env" in the Windows search (or press windows key), and click on "Environment Variables...", edit the Path of the User Variables and add a new one "C:\src\flutter\bin".
Run the command
flutter, if the command is found it will start downloading some dependencies, after that run
Download OpenJDK8, I recommend using this one http://download.java.net/openjdk/jdk8u40/ri/openjdk-8u40-src-b25-10_feb_2015.zip
Just extract the files on a folder like "C:\Program Files\Java\openjdk8".
Add the JAVA_HOME and the path to the System Variables, go to edit the Environment Variables and click on "New..." under the System Variables
After you add the new system variable you can set the path for java, edit the Path of the System Environment and add "_%JAVA_HOME%\bin"
Download Android SDK, Head to https://developer.android.com/studio#downloads and download Command line tools only for Windows. After downloaded, just extract the folder (tools) in a new folder on "C:\Android".
Install Android dependencies. Move to "C:\Android\tools\bin" and run the
sdkmanager.bat --list(with the Terminal), run the following commands:
Allow debugging mode on your phone, you can follow this tutorial https://developer.android.com/studio/debug/dev-options, allow the connection from your PC prompted on your phone's screen.