u/Deep_Island8961

Problem with flutter doctor --android-licenses

Problem with flutter doctor --android-licenses

i was going to run my flutter project on Android Studio emulator. But then, i have to accept the SDK licenses. When i tried to run flutter doctor, i found this messages

PS C:\Users\USER> flutter doctor

Doctor summary (to see all details, run flutter doctor -v):

[✓] Flutter (Channel stable, 3.47.0, on Microsoft Windows [Version 10.0.26200.9168], locale en-ID)

[✓] Windows Version (Windows 11 or higher, 25H2, 2009)

[!] Android toolchain - develop for Android devices (Android SDK version 36.1.0)

✗ Android license status unknown.

Run `flutter doctor --android-licenses` to accept the SDK licenses.

See https://flutter.dev/to/windows-android-setup for more details.

[✓] Chrome - develop for the web

[✗] Visual Studio - develop Windows apps

✗ 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

[✓] Connected device (3 available)

[✓] Network resources

! Doctor found issues in 2 categories.

PS C:\Users\USER> flutter doctor --android-licenses

WARNING: The SDK Manager CLI tool (sdkmanager) is deprecated. Android CLI will be used instead.

The 'android' binary can also be found in the cmdline-tools directory, and 'android sdk' is the replacement for 'sdkmanager'.

To learn more about the Android CLI and how to use it, see the documentation (https://d.android.com/tools/agents/android-cli)

Warning: The --licenses option is no longer needed.

PS C:\Users\USER>

I've already did some googling but still cannot find any solution..

u/Deep_Island8961 — 21 hours ago