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
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
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
There are different possible reasons for this issue, here are some of them.
https://developer.android.com/tools/variables
How do I set ANDROID_SDK_HOME environment variable?