AndroidStudio WiFi debugging plugin

Foreword

  This blog is also part of the Android studio plugin article. I will introduce more AndroidStudio in the future. The plug-in is convenient for development. Android device debugging with WiFi was generally connected through adb in the past, but this kind of gameplay requires device root permission. Very troublesome, fortunately, there is a plug-in on Android studio that can complete wifi debugging without device root .

The first step is to download the plug-in

   in AndroidStudio In the menu bar, find File> Settings> Plugins> click Marketplace and wait for the plug-in list to refresh> Then enter wifi to search for the plug-in, select ADB WIFI (there are many other wifi debugging tools in the list, don’t make a mistake ) Install. After downloading, you need to restart AndroidStudio

share picture

After downloading, install the plug-in, you need to restart Android studio

share picture

The second step deviceconnect USB Connect to WiFi

  You need to connect your device to the computer USB, and in the next steps you need to execute the adb command to complete the wifi switch

  Long-winded reminder. The WiFi network connected to the device should be in a local area network with the network connected to your computer… (There is really no way to guarantee that you can try to use USB at any time WiFi)

The third step is to open the tool

   in the menu bar, find Tools> select ADB WIFI> ADB USB to WIFI

Share a picture

The fourth step is to check your own device IP address

   We need to know the IP address on the device in subsequent operations, you After your device has been connected to WiFi, you can find the system> About mobile phone> Status information> The network IP address of the current device can be viewed in the IP address (domestic mobile phones will be placed in other directories in the settings, and you can still find them with patience)

share picture

The fifth step of debugging connection

  Open the cmd terminal that comes with Android studio

(1) adb connect 192.XXX (Your phone’s wifi ip address) (adb disconnect 192.XXX to disconnect)
(2) If you are unable to connect to 192.XXX, enter adb tcpip 5555< br>(3) Then reconnect, enter adb connect 192.X .XX:5555
(4) Then open your app and see if the log is printed. If yes, it proves that the front connection is successful. You can unplug the data cable at this time.
(5) If you use the wireless debugging mobile phone again next time Function, you need to perform point 3 again

As shown in the figure:

share picture

< p>

end

Leave a Comment

Your email address will not be published.