skip to Main Content

In sdktools although Android SDK Command line is installed flutter doctor does not recognizes
I have Android installed in F directory and android sdk location in a directory F:sdklocation

sdktools capture

I tried all the recommendations published and It is does not work

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.19.1, on Microsoft Windows [Versi¢n 10.0.22631.3155], locale es-ES)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    X cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

I installed and reintalled cmdline-tools I added new path F:/sdklocation and it does not work

2

Answers


  1. Chosen as BEST ANSWER

    Flutter does not permit that you install sdk outside the path C:Users{username}AppDataLocalAndroidsdk therefore it not posible to install sdk for instance f:sdklocation if you want to use flutter


  2. There are different possible reasons for this issue, here are some of them.

    1. The path of your SDK – (It should not contain any special characters).
    2. Please check you environment variables, you might have missed to set the environment variables, here are the links for it –

    https://developer.android.com/tools/variables

    How do I set ANDROID_SDK_HOME environment variable?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search