Install Flutter on Windows

0

System requirements

To set up and run Flutter, your improvement surroundings ought to meet these minimal requirements:


Operating Systems: Windows 10 or later (64-bit), x86-64 based.

Disk Space: 1.64 GB (does now not consist of disk house for IDE/tools).

Tools: Flutter relies upon this equipment being reachable in your environment.

Windows PowerShell 5.0 or more modern (this is pre-installed with Windows 10)

Git for Windows 2. x, with the Use Git from the Windows Command Prompt option.


If Git for Windows is already installed, make certain you can run git instructions from the command instant or PowerShell.

the Flutter SDK

Download the following setup bundle to get the modern-day secure launch of the Flutter SDK:
For different launch channels, and older builds, see the SDK releases page.

Extract the zip file and region of the contained flutter in the preferred setup area for the Flutter SDK (for example, C:\src\flutter). 

If you don’t desire to deploy a constant model of the setup bundle, you can bypass steps 1 and two Instead, get the supply code from the Flutter repo on GitHub, and trade branches or tags as needed. For example:


You are now ready to run Flutter commands in the Flutter Console.

Update your path

If you want to run Flutter instructions in the ordinary Windows console, take these steps to add Flutter to the PATH surroundings variable:

From the Start search bar, enter ‘env’ and pick out Edit surroundings variables for your account.
Under User variables test if there is an entry referred to as Path:
If the entry exists, append the full direction to flutter\bin the use of; as a separator from current values.
If the entry doesn’t exist, create a new person variable named Path with the full direction to flutter\bin as its value.

Run flutter doctor

From a console window that has the Flutter listing in the direction (see above), run the following command to see if there are any platform dependencies you want to entire the setup: 

C:\src\flutter>flutter doctor
This command assessments yourenvironment and shows a file
of the fame of your Flutterinstallation. Check the output cautiously for different
software program you may want to set up or similarly 
duties to operate (shown in daring text).

For example: 
[-] Android toolchain - develop for Android devices
    • Android SDK at D:\Android\sdk
    ✗ Android SDK is missing command line tools; download from
 https://goo.gl/XxQghQ
    • Try re-installing or updating your Android SDK,
  visit https://docs.flutter.dev/setup/#android-setup 
for detailed instructions.

The following sections describe how to operate these duties and end the setup process. Once you have mounted any lacking dependencies, you can run the flutter medical doctor command once more to confirm that you’ve set the whole thing up correctly. 

Android setup

Install Android Studio

Download and install Android Studio.
Start Android Studio, and go via the ‘Android Studio Setup Wizard. This installs the cutting-edge Android SDK, Android SDK Command-line Tools, and Android SDK Build-Tools, which are required by way of Flutter when growing for Android.
Run flutter health practitioner to verify that Flutter has placed your set up of Android Studio. If Flutter can't hit upon it, run flutter config --android-studio-dir <directory> to set the listing that Android Studio is established to.
</directory> 

Set up your Android device

To put together to run and check your Flutter app on an Android device, you want an Android gadget strolling Android 4.1 (API stage 16) or higher.


Enable Developer alternatives and USB debugging on your device. Detailed guidelines are on hand in the Android documentation.

Windows-only: Install the Google USB Driver.

Using a USB cable, plug your smartphone into your computer. If brought on on your device, authorize your laptop to get entry to your device.

In the terminal, run the flutter gadgets command to confirm that Flutter acknowledges your linked Android device. By default, Flutter makes use of the model of the Android SDK the place your ADB device is based. If you prefer Flutter to use a specific setup of the Android SDK, you should set the ANDROID_SDK_ROOT surroundings variable to that setup directory.

Set up the Android emulator

To put together to run and check your Flutter app on the Android emulator, observe these steps:

Enable VM acceleration on your machine.
Launch Android Studio, click on the AVD Manager icon, and pick Create Virtual Device…
In older variations of Android Studio, you ought to rather launch Android Studio &gt; Tools &gt; Android &gt; AVD Manager and pick out Create Virtual Device…. (The Android submenu is solely current when internal an Android project.)
If you do now not have a mission open, you can pick Configure &gt; AVD Manager and choose to Create Virtual Device…
Choose a machine definition and pick Next.
Select one or extra machine snapshots for the Android variations you choose to emulate, and choose Next. An x86 or x86_64 picture is recommended.
Under Emulated Performance, choose Hardware - GLES two to allow hardware acceleration.
Verify the AVD configuration is correct, and pick Finish.

For important points on the above steps, see Managing AVDs.

In Android Virtual Device Manager, click on Run in the toolbar. The emulator starts offevolved up and shows the default canvas for your chosen OS model and device.


Agree to Android Licenses


Before you can use Flutter, you should agree to the licenses of the Android SDK platform. This step ought to be achieved after you have mounted the equipment listed above.

Make positive that you have a model of Java eight set up and that your JAVA_HOME surroundings variable is set to the JDK’s folder.

Android Studio variations 2.2 and greater come with a JDK, so this ought to already be done.

Open an expanded console window and run the following command to commence signing licenses. 

flutter doctor --android-licenses

Review the phrases of every license cautiously earlier than agreeing to them.
Once you are executed agreeing with licenses, run flutter health practitioner once more to verify that you are equipped to use Flutter.

Post a Comment

0Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.
Post a Comment (0)

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !