To connect a physical Android device to Android Studio over Wi-Fi for debugging, you can follow these steps:

 To connect a physical Android device to Android Studio over Wi-Fi for debugging, you can follow these steps:

--------------------------------First Step--------------------------------------------------------

https://developer.android.com/studio/releases/platform-tools

Vidio Link

Download and copy C Drive (C:\Program Files\platform-tools)

-------------------------------------------OR-----------------------------------------------

  1. Install the Android SDK Platform-Tools package, which includes the "adb" tool, if you haven't already. You can download it from the Android Studio SDK Manager, or directly from the Android Developer website.



2. Once you've installed the package, locate the "adb" executable file on your computer. It should be located in the "platform-tools" directory of your Android SDK installation folder.


3. Add the path to the "platform-tools" directory to your system's "PATH" environment variable. This will allow you to run the "adb" command from any directory on your computer.

  • On Windows:

    i. Open the Start menu and search for "Environment Variables".

    ii. Click on "Edit the system environment variables".




iii. Click on the "Environment Variables" button.




                iv. Under "System variables", scroll down and find the "Path" variable.

                   v. Click on "Edit" and then "New".



           vi. Type in the path to the "platform-tools" directory, such as                                                               "C:\Android\Sdk\platform-tools", and click "OK" to save the changes.

            vii. Click "OK" again to close the Environment Variables window, and then restart any                     command prompt or terminal windows that you have open.



To connect a physical Android device to Android Studio over Wi-Fi for debugging, you can follow these steps:

  1. Connect your Android device to your computer via USB cable and enable USB debugging on your device.

  2. Open a command prompt or terminal window on your computer and enter the following command:


  1. Disconnect the USB cable from your device.

  2. Find the IP address of your device. You can do this by going to the Settings app on your device, selecting "About phone" or "About tablet", and then finding the "IP address" or "Wi-Fi MAC address" option.


  1. Enter the following command in your command prompt or terminal window, replacing "xxx.xxx.xxx.xxx" with the IP address of your device:

    Commend prompt
    adb connect xxx.xxx.xxx.xxx:PortNO

    This command tells ADB to connect to your device over Wi-Fi.

  1. If the connection is successful, you should see a message in the command prompt or terminal window indicating that your device is connected.

  2. Now, you can unplug your device from your computer and run your app in Android Studio. The app should be automatically installed on your device and you can debug it as usual.

Note: If you have trouble connecting your device over Wi-Fi, make sure that your device and computer are on the same network and that your firewall or antivirus software is not blocking the connection. You may also need to restart your device or computer after making changes to your network settings.


-------------------------------------------END -------------------------------------------------------

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.