相关文章推荐
心软的小虾米  ·  Flutter ...·  3 周前    · 
健身的抽屉  ·  sqlalchemy ...·  11 月前    · 
踢足球的黑框眼镜  ·  java - ...·  1 年前    · 
坚强的山楂  ·  (10)uniGUI for C++ ...·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

when I start to run flutter doctor it say X Android SDK file not found: adb. how I solve this problem

Ask Question
C:\Users\ASUS>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.5.3, on Microsoft Windows [Version 10.0.19042.1526], locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    X Android SDK file not found: adb.
[√] Chrome - develop for the web
[√] Android Studio (version 2021.1) ` `
[√] VS Code (version 1.64.2)
[√] Connected device (2 available)
! Doctor found issues in 1 category.

android_sdk/platform-tools/ is not installed in your computer or you made mistake in installing and adding to you path

if your using Android Studio go to settings then System Settings go to Android SDK and install Android SDK Platform-Tools,

if it didnt help reinstall platform-tools, this might be helpful

you can follow link to install it manually SDK Platform Tools but remember to add the path of android bin folder in your env

for more info you can read this article

op has already mentioned that sdk is installed. and your manual installation is not relevant for flutter environment. – abhi patil Feb 28, 2022 at 16:48 This fixed it for me. SDK was installed but this was good to find location. Also way to install any missing modules like cmd line tools – Stephen Dillon Dec 23, 2022 at 21:12
  • Select Android SDK from Left Sidebar.
  • Select SDK Tools.
  • Check Android SDK Command-line Tools (latest) and download and
    install it.
  • Run flutter doctor again
  • Hope solved

    Thanks for contributing an answer to Stack Overflow!

    • Please be sure to answer the question. Provide details and share your research!

    But avoid

    • Asking for help, clarification, or responding to other answers.
    • Making statements based on opinion; back them up with references or personal experience.

    To learn more, see our tips on writing great answers.