Flutter Commands

flutter pub get
flutter run -d chrome –web-renderer html

Pre request downloads :
Visual Studio Installer
Python-3.12.1
Android Studio

1. Download Android Studio
2. Install SDK Manager
3. Create AVD
4. Download And Extract Flutter
5. Set Path for Flutter
6. Agree Android Licences
7. Run flutter doctor –android licenses
8. flutter config –android-studio-dir
program files -> Android -> Android Studio
9. Install Flutter plugin in Android Studio
10. Create New Flutter Project – > Before Set Flutter Path

where flutter
where flutter dart

C:\Users\Administrator\AppData\Local\Android\Sdk
Uninstall From : C:\Program Files\Android\Android Studio\

ANDROID_HOME -> C:\Users\Administrator\AppData\Local\Android\Sdk
ANDROID_SDK_ROOT -> C:\Users\Administrator\AppData\Local\Android\Sdk
User Variables For Administrator
Path -> C:\Users\Administrator\AppData\Local\Android\Sdk\tools
C:\Users\Administrator\AppData\Local\Android\Sdk\platform-tools
C:\Program Files\Java\jdk-17\bin
System Variables
Path -> C:\Program Files\Microsoft\jdk-17.0.8.7-hotspot\bin
C:\Program Files\Java\jdk1.8.0_211\bin
D:\Softwares\flutter 3.22.1\bin

SDK Component Setup :

Android SDK – (455MB)
Android SDK Platform
Android 14.0(“UpsideDownCake”, API 34) – (155MB)

Setup Type: Standard
SDK Folder: C:\Users\Administrator\AppData\Local\Android\Sdk
Total Download Size: 559 MB

SDK Components to Download:

Android Emulator
Android SDK Build-Tools 34
Android SDK Platform 34
Android SDK Platform-Tools
Sources for Android 34

SDK Platform – Old
*-*-*-*-*-
Android API 34, Extension Level 10 (API Level 34)
Android SDK Platform 34-ext10
Android 13.0 (Tiramisu)
Android SDK Platform 33 (API Level 33)
Google APIs intel x86_64 Atom System Image
Android 12.0(S)
Android SDK Platform 31 (API Level 31)
Android 11.0(R)
Google Play Intel x86 Atom System Image(API Level 30)

SDK Tools – Old
*-*-*-*-
Android SDK Build-Tools 35-rc4
Version 34,33,
NDK Side by Side
25.1.89
Intel X86 Emulator Accelerator (HAXM installed) – Deprecated 7.6.5

*-*-*-*-

Error :
C:\Users\Administrator>flutter doctor –android-licenses

“Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to resolve this.”

Solution :

Installed commandline-tools from SDKTools tab , i installed latest but got same error. Then installed down version , got same error. Then installed down version it is fixed.

C:\Users\Administrator>flutter doctor –android-licenses
Warning: Observed package id ‘cmdline-tools;latest’ in inconsistent location ‘C:\Users\Administrator\AppData\Local\Android\Sdk\cmdline-tools\latest-2’ (Expected ‘C:\Users\Administrator\AppData\Local\Android\Sdk\cmdline-tools\latest’)
Warning: Observed package id ‘cmdline-tools;latest’ in inconsistent location ‘C:\Users\Administrator\AppData\Local\Android\Sdk\cmdline-tools\latest-2’ (Expected ‘C:\Users\Administrator\AppData\Local\Android\Sdk\cmdline-tools\latest’)

*-*-*-*-*-

C:\Users\Administrator\AppData\Local\Android\Sdk\cmdline-tools\13.0\bin
Comandline Tools installed in “AppData” folder
AVD Stored in : “C:\Users\Administrator\.android\avd”
Android studio stored in program files : “C:\Program Files\Android\Android Studio\bin”

-*-*-*-*-

Error 2 :
[X] Visual Studio – develop Windows apps
X Visual Studio not installed; this is necessary to develop Windows apps.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the “Desktop development with C++” workload, including all of its default components

Solution :
Usually we need to install “Desktop development with C++.” through Visual Studio installer.

But if we did not develop Windows app , we can skip now

“flutter config –no-enable-windows-desktop”
Setting “enable-windows-desktop” value to “false”.

You may need to restart any open editors for them to read new settings.

Result :

C:\Users\Administrator>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.22.1, on Microsoft Windows [Version 10.0.19045.4412], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain – develop for Android devices (Android SDK version 34.0.0)
[√] Chrome – develop for the web
[√] Android Studio (version 2023.3)
[√] VS Code (version 1.75.1)
[√] Connected device (2 available)
[√] Network resources

• No issues found!

Leave a Reply

Your email address will not be published. Required fields are marked *