-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run "adb", check your Android SDK installation and ANDROID_SDK_ROOT environment variable #72101
Comments
Hi @davidefiozzi adb devices
and provide the full logs. |
adb devices recognizes my device I noticed that if i run adb in cmd.exe it doesn't work but if i run it on Windows PowerShell it does work. I also tried in flutter directory I don't repost the verbose flutter doctor output because is exactly the same as the one provided in the issue opening EDIT: I can also notice that when I open Android Studio, i see the message "Flutter daemon terminated". |
Is |
No, it crashes [☠] Connected device (the doctor check crashed) |
@davidefiozzi Can you find where |
Yes, is the only adb.exe present in my system. |
I encounter with the same error on ANDROID_SDK_ROOT variable. How did you fix this? |
I've the same error |
I also have a similar issue and I cannot run adb on cmd, but it works on git bash or powershell. Interestingly, when I created a new user account on the same pc, and followed the same steps in https://flutter.dev/docs/get-started/install/windows, I can run flutter apps just fine. It just does not work on my main account, even after many rounds of reinstallations. |
`I have solved this issue in ubuntu:
In Windows , probably you have to make sure /tools and /platform-tools are in the %PATH%. |
Same problem:
|
Having the same issue. Creating a separate user account and running it there worked, but it still won't work on my primary user.
|
Check if mobile hotspot is enabled, if it is enabled turn it off and restart android studio. I had a problem with this. |
For Me. |
It works! |
I think the action item for this bug is to differentiate between failing to find adb binary and we ran adb, but it failed. In the latter case, we should surface to the user adb's STDERR. |
PS D:\FLUTTER PROJEK\New folder\Pertemuan 13> flutter devices PS D:\FLUTTER PROJEK\New folder\Pertemuan 13> flutter doctor -v Checking Android licenses is taking an unexpectedly long time...[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3) [√] Chrome - develop for the web [X] Visual Studio - develop for Windows [!] Android Studio (not installed) [√] VS Code (version 1.68.1) [☠] Connected device (the doctor check crashed) [√] HTTP Host Availability ! Doctor found issues in 3 categories. |
For me (on Windows), the adb daemon was unable to start (when trying |
This comment was marked as duplicate.
This comment was marked as duplicate.
I have windows 7 and when open android studio, showing this message at the left corner "unable to detect adb version error code 0xc0000005" how to fix this, kindly give me suggestions. |
had the them issue, the solution is as follows: https://www.geeksforgeeks.org/fix-unable-to-locate-adb-within-sdk-in-android-studio/ |
I suddenly had the same problem. I deleted /Users/$USER/Library/Android/sdk and re installed it.
|
I've tried and unfortunately that doesn't help either. I ran it on a second computer where I have windows 10. |
All the solutions mentioned above doesn't work on Anyone else able to get around this on |
this worked for me after flutter upgrade changed things |
this one work for me, thanks a lot |
I have gone through all suggestion and I still have the same problem:
|
same issue |
I encountered the same problem in Ubuntu 22.04.4, using vs code, after connecting my smartphone using a type-c cable. For me the solution was as follows: step 1: go to the location of adb executable file step 2: then - in terminal after navigating to the previous location - run step 3: step 4: |
I had the same problem after upgrading Android Studio. I'm using Windows 10. (1) (2) After this, flutter doctor should report OK. |
Hi, I'm not able to use properly Flutter with Android Studio on my new laptop after switching from the old one.
Here is the output of flutter doctor verbose:
flutter doctor -v
As suggested in the output, i checked env variables, but seems all ok. I don't have any other adb.exe running on my machine. These are my env variables:
ANDROID_SDK_ROOT: C:\Users\Claudio\AppData\Local\Android\Sdk
PATH: [...] C:\Users\Claudio\AppData\Local\Android\Sdk\platform-tools;C:\Users\Claudio\AppData\Local\Android\Sdk\tools;[...]
This is what i tryed to fix the issue, but it didn't work:
In my old laptop everything is EXACTLY the same, same platform-tools version, same Android Studio version, same env variables ecc...
I really can't get what's wrong, and this issue is causing important delay to my work, thanks a lot to anyone that will help me!
The text was updated successfully, but these errors were encountered: