MicrosoftDocs / windows-dev-docs

Conceptual and overview content for developing Windows apps
Creative Commons Attribution 4.0 International
698 stars 1.21k forks source link

Windows Subsystem for Android - adb connect 127.0.0.1:58526 - adb is not recognized #3459

Open jaredfiacco2 opened 3 years ago

jaredfiacco2 commented 3 years ago

Problem/Scenario: In a cmd terminal --> C:\Users\username>adb connect 127.0.0.1:58526 'adb' is not recognized as an internal or external command, operable program or batch file.

My Understanding: adb not added to PATH, but I can't find where this is on my device. Any idea where it might be? I got the subsystem for android by downloading an android app in the Microsoft store (which auto-downloads the Amazon Appstore, the app itself, and the Windows Subsystem for Android).

Other Info: System: Windows 11 Computer: Surface Pro 8 Windows Subsystem for Android: Subsystem Resources --> Continuous, Developer mode --> On Windows Developer Mode: On

Thank you!

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

mattwojo commented 3 years ago

@hamza-usmani - Any idea how to address this?

onomatopellan commented 2 years ago

I had to install adb manually. You can get latest adb.exe from https://dl.google.com/android/repository/platform-tools-latest-windows.zip

NguyenDongChau commented 2 years ago

with Windows Terminal or Windows Powershell, please try command "./adb connect 127.0.0.1:58526" it will work

obrocki commented 1 year ago

Handy workaround - External Tools in VS

image

(Command: C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe)