Showing error in the "flutter doctor" about Android toolchain

11,662

Solution 1

I had the same problem and I solved it by following the solution at this link; I use Linux but I believe it will fix your problem regarding the operating system you are using.

Solution 2

Open Android studio > go to SDK manager from more actions > in android SDK option select SDK tools > install android SDK command-line tools(latest) and accept the licence.

It will run and if it still shows some licence is missing type the command given in the cmd and run flutter doctor again after accepting the licence.

Share:
11,662

Related videos on Youtube

Sagar Khurana
Author by

Sagar Khurana

I am like a tree that grow hearts and which one you take away

Updated on May 25, 2022

Comments

  • Sagar Khurana
    Sagar Khurana almost 2 years

    Showing error about android toolchain

    !] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    ✗ Android license status unknown.
      Try re-installing or updating your Android SDK Manager.
      See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup for
      detailed instructions.
    

    So I read about this on how to fix this

    So I found a command named "flutter doctor --android-licenses" and output of "flutter doctor --android-licenses" is

    Android sdkmanager tool not found
    (/Users/sagarkhurana/Library/Android/sdk/tools/bin/sdkmanager).
    Try  re-installing or updating your Android SDK,
    visit https://flutter.dev/setup/#android-setup for detailed instructions.
    

    and I already have android studio and and it's SDK location is "/Users/sagarkhurana/Library/Android/sdk"

    Please help me I searched it alot but got no result Thanks

  • Admin
    Admin over 2 years
    Please add further details to expand on your answer, such as working code or documentation citations.
  • javdromero
    javdromero over 2 years
    This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review