Hi!
Android SDK file is not found: adb is a flutter error that you get when you are developing for the Android platform.
In the terminal you write this command:
flutter doctor
And you get this message where you have “Android toolchain – develop for Android devices ( Android SDK version 31.0.0) Android SDK file not found: adb“.
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.0, on macOS 11.6.2 20G314
darwin-x64, locale en-GB)
[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
✗ Android SDK file not found: adb.
[✓] Xcode - develop for iOS and macOS (Xcode 13.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.71.2)
[✓] Connected device (2 available)
[✓] HTTP Host Availability
Now! let’s see how to resolve this issue
Solution
Step 1: Open Android Studio
Step 2: Open the SDK manager from the three-dot icons
Step 3: Go to the SDK tools section
Step 4: Check the “Android SDK platform-Tools”
Step 5: Download and Install the Files
Done! Its time to open the terminal again and write
flutter doctor
After applying the solution,
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.0, on macOS 11.6.2 20G314
darwin-x64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android
SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.71.2)
[✓] Connected device (2 available)
[✓] HTTP Host Availability
Everything is OK and the error is gone.
Conclusion:
You just solve the “Android SDK file not found: adb” error in a flutter. If you still struggling with the same problem you can open an issue in flutter issues.
Also, don’t forget to read other solutions, they are also helpful:
- Flutter Android sdkmanager not found error Solution
- Flutter packages have newer versions incompatible Solution
- Flutter Null Check Operator Used on a Null Value Solution
- Flutter cmdline-tools component is missing error Solution
There is a flutter tutorials page for more tutorials or you can visit the flutter error page. Thanks!