Flutter &引用;找不到Android SDK&引用;在windows 10上运行Flatter doctor时

Flutter &引用;找不到Android SDK&引用;在windows 10上运行Flatter doctor时,flutter,android-studio,Flutter,Android Studio,目前我的andoid工作室已就位 C:\Android\AndroidStudio 控制台上 C:\Users\aditya jain>flutter doctor Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 2.2.0, on Microsoft Windows [Version 10.0.19043.985], locale en-IN) [X] An

目前我的andoid工作室已就位

C:\Android\AndroidStudio
控制台上

C:\Users\aditya jain>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.2.0, on Microsoft Windows [Version 10.0.19043.985], locale en-IN)
[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[√] Chrome - develop for the web
[√] Android Studio
[√] Connected device (2 available)

! Doctor found issues in 1 category.
我的sdk位置是

C:\Users\aditya jain\AppData\Local\Android\Sdk
1> 我已经安装了Android sdk平台工具和Android sdk工具(obsoloete)

2> 我只有本地、Loacallow和漫游文件,但没有平台文件 ,就像我看过很多youtube视频一样..他们说要添加到path平台文件中,但我在用户的appdata文件夹中看不到任何内容(默认情况下是隐藏的)。

3> 为我的sdk运行flatter config命令并获得

C:\Users\aditya jain>flutter config --android-sdk flutter config --android-sdk \C:\Users\aditya jain\AppData\Local\Android\Sdk
Setting "android-sdk" value to "flutter".

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

C:\Users\aditya jain>
在这个问题上有一个答案 运行

但是我不知道我应该为我的sdk位置做些什么。我的名声不太好,所以我不能在那里发表评论,所以我在这里发布问题

也试过

C:\Users\aditya jain>flutter config --android-sdk <sdk-"C:\Users\aditya jain\AppData\Local\Android\Sdk">
The syntax of the command is incorrect.

C:\Users\aditya jain>flutter config --android-sdk <sdk-C:\Users\aditya jain\AppData\Local\Android\Sdk>
The syntax of the command is incorrect.
我无法将“aditya jain”文件夹重命名为“adityajain”…它占用空间…请帮助我

请帮助并感谢社区

C:\Users\aditya jain>flutter config --android-sdk <sdk-"C:\Users\aditya jain\AppData\Local\Android\Sdk">
The syntax of the command is incorrect.

C:\Users\aditya jain>flutter config --android-sdk <sdk-C:\Users\aditya jain\AppData\Local\Android\Sdk>
The syntax of the command is incorrect.
C:\Users\aditya jain>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.2.0, on Microsoft Windows [Version 10.0.19043.985], locale en-IN)
[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[√] Chrome - develop for the web
[!] Android Studio
    X android-studio-dir = C:\Android\AndroidStudio
    X Android Studio not found at C:\Android\AndroidStudio
[√] Connected device (2 available)

! Doctor found issues in 2 categories.

C:\Users\aditya jain>flutter config --android-studio-dir=C:\Users\aditya jain\Downloads\Android\AndroidStudio
Setting "android-studio-dir" value to "C:\Users\aditya".

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

C:\Users\aditya jain>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.2.0, on Microsoft Windows [Version 10.0.19043.985], locale en-IN)
[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[√] Chrome - develop for the web
[!] Android Studio
    X android-studio-dir = C:\Users\aditya
    X Android Studio not found at C:\Users\aditya
[√] Connected device (2 available)

! Doctor found issues in 2 categories.

C:\Users\aditya jain>