Unable to locate a development device; please run 'flutter doctor' for information about installing additional components - flutter

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v0.9.4, on Microsoft Windows [Version 6.1.7601], locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
X Android SDK file not found: C:\Users\Admin\AppData\Local\Android\Sdk\build-tools\28.0.3\aapt.
[√] Android Studio (version 3.2)
[√] Connected devices (1 available)
! Doctor found issues in 1 category.

configure your sdk path
flutter config --android-sdk /path/to/android/sdk
after that accept all the licenses
flutter doctor --android-licenses
finally run
flutter doctor

In Android Studio open
Menu > Tools > SDK Manger
switch to tab "SDK Tools" and check "Android SDK Build-Tools"
click the OK button.

problems are slow
I just go on C:\Users\Admin\AppData\Local\Android\Sdk\build-tools\28.0.3
AND ADD aapt file.
and run command flutter doctor

Related

Flutter doctor error -cmdline tools component missing and Android sdkmanager tool not found. Windows

I'm trying to setup an android emulator but I don't have intel. I've been through so many similar pages but none have given me an answer on why I can't get my flutter doctor to work. Here is my flutter doctor results:
C:\Users\icetr>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.10.4, on Microsoft Windows [Version 10.0.19044.1645], locale en-US)
[!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
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.
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.4)
[√] Android Studio (version 2021.1)
[√] VS Code (version 1.66.2)
[√] Connected device (3 available)
[√] HTTP Host Availability
! Doctor found issues in 1 category.
C:\Users\icetr>flutter doctor --android-licenses
Android sdkmanager not found. Update to the latest Android SDK and ensure that the cmdline-tools are installed to
resolve this.
Here is my android sdk folder:
And my cmdline tools folder:
Inside the lastest folder:
Inside the bin folder:
Here's my paths:
Here's my Android Studio SDK Tools tab:
If anyone needs anymore information just ask.
Install NDK Manager and android command-line tool from android Studio. Also, accept the android licenses.
flutter doctor --android-licenses
After ALOT of trial an error, I had to finally delete all my android packages, Uninstaller Android Studio, and reinstall. Then I deleted all my paths, and reput them in and it fixed it all.

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

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
Go to SDK Manager from Settings.
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

Flutter doctor android-studio-dir problem

When I run flutter doctor, it renders these 2 errors and I can't find a way to get over them:
C:\Users\Work pc>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.0.5, on Microsoft Windows [version 10.0.19041.928], locale fr-CH)
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
X Cannot execute C:\ProgramData\Oracle\Java\javapath\java.exe to determine the version
[√] Chrome - develop for the web
[√] Android Studio (version 4.1.0)
[!] Android Studio
X android-studio-dir = C:\Program
X Android Studio not found at C:\Program
[√] VS Code (version 1.55.2)
[√] Connected device (2 available)
! Doctor found issues in 2 categories.
I mainly have difficulties with solving the second problem, related to android studio.
Thanks a lot!
try running this command on your terminal flutter config --android-studio-dir=[path/to/android-studio]
Try running this command in your cmd
flutter config --android-studio-dir=""
Then restart all your editors for them to load new settings

whenever the flutter doctor always makes this mistake he says he can't find the file

Output of flutter doctor
C:\WINDOWS\system32>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.17.0, on Microsoft Windows [versão 10.0.18363.778], locale pt-BR)
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
X Android SDK file not found: C:\Users\egacg\AppData\Local\Android\sdk\platforms\android-29\android.jar.
[√] Android Studio (version 3.6)
[!] Connected device
! No devices available
! Doctor found issues in 2 categories.
You need to download the SDK (Android SDK version 29.0.3).
If you are using android studio you can click on Tools->SDK Manager, Select the version you need and hit apply/OK.
Then run flutter doctor again.

Unable to locate the android sdk flutter

I installed visual_stdio_code and trying to run "flutter doctor" then this is the error.
and when I run flutter doctor on Command Line and this is answer that I have:
flutter devices Unable to locate a development device; please run
'flutter doctor' for information about installing additional
components.
Any help please!
Here's another solution just in case the answer above doesn't work.
Open Android Studio then click on SDK Manager (down-pointing arrow)
This should open a new box with your Android SDK Location at the top. It should look like this:
/Users/your-name/Library/Android/sdk
Copy that path, head to the Terminal and type this:
flutter config --android-sdk /Users/your-name/Library/Android/sdk
Next run:
flutter doctor --android-licenses
You can run flutter doctor to verify
That should help.
Step-1
Config the path of android-sdk:
# use `$ANDROID_HOME` if your android-sdk path is not below
$ flutter config --android-sdk /usr/local/share/android-sdk
Step-2
Add android-license to flutter
$ flutter doctor --android-licenses
Step-3
Check if it works
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.3.3-pre.18, on Mac OS X 10.14.3 18D109, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.3)
[✓] Connected device (2 available)
• No issues found!
If you are using Windows your sdk path may be
/Users/yourUserName/Library/Android/sdk
or if are using linux the path maybe
/usr/local/share/android-sdk
Or
/home/yourUserName/Android/sdk
Then Try Executing
flutter config --android-sdk <your-android-sdk-path>