How to pair Galaxy Watch 6 with Android Studio over Wi-Fi

박진석·2025년 3월 7일
1

VisualVroom

목록 보기
5/6

I tried following the instructions in https://developer.samsung.com/sdp/blog/en/2024/04/30/connect-galaxy-watch-to-android-studio-over-wi-fi

But I ran into some issues, so here is how I solved it...

Setting Up Galaxy Watch

First, let's prepare y
our Galaxy Watch for debugging:

  1. Open the Settings menu on your Galaxy Watch
  2. Go to Connections > Wi-Fi and connect to the same Wi-Fi network as your computer
  3. Navigate to Settings > About watch > Software Information
  4. Tap on Software version 5 times to enable Developer Mode (you'll see a notification when it's enabled)

  1. Return to Settings and find the newly added Developer options menu

  2. Enable the following options:

    • ADB debugging

    • Turn off automatic Wi-Fi

    • Wireless debugging

  1. Tap on Wireless debugging and select Pair new device
  1. Note the IP address and pairing port displayed on your watch

Connecting from Android Studio

Now here's where I ran into issues. The standard instructions often assume that ADB is already accessible from your terminal, but that's not always the case, especially in certain Windows environments.

If you encounter an error like this:

adb : The term 'adb' is not recognized as the name of a cmdlet, function, script file, or operable program.

Here's the solution:

  1. Open the Terminal in Android Studio
  2. Navigate to the platform-tools directory where ADB is located:
    cd $env:LOCALAPPDATA\Android\Sdk\platform-tools
  3. From that directory, run ADB commands using the relative path:
    .\adb devices
    This should show a list of currently connected devices (which might be empty for now)
  4. Pair with your watch using:
    .\adb pair IP_ADDRESS:PAIRING_PORT
    Replace IP_ADDRESS and PAIRING_PORT with the values shown on your watch's screen
  5. When prompted, enter the pairing code displayed on your watch
  6. After successful pairing, connect to your watch:
    .\adb connect IP_ADDRESS:CONNECTION_PORT
    The connection port is typically 5555 if not specified otherwise

Verifying the Connection

To confirm your watch is properly connected:

  1. Run .\adb devices again
  2. You should see your watch listed with its IP address
  3. In Android Studio, your watch should appear in the device dropdown menu

0개의 댓글