Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use ADB to realize Network debugging in Android Studio

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the relevant knowledge of "how to use ADB to achieve network debugging in Android Studio". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "how to use ADB to achieve network debugging in Android Studio" can help you solve the problem.

1. Use the AS Command console adb command to debug manually

Connect USB to your phone and enter adb tcpip 5555 in the Terminal window at the bottom of AS

Then enter adb shell ifconfig wlan0 to view the mobile phone ip address, or check it in Mobile WiFi connection Management.

Enter adb connect 10.0.0.20 to connect to WiFi debugging. 10.0.0.20 please replace it with the ip address of your own phone.

The display of connected to 10.0.0.20 5555 indicates that the connection is successful, and you can unplug the USB and run the debugger.

two。 Using AS plug-in Android WiFi ADB to connect automatically

USB connects to the mobile phone, and in AS, open File > Settings > Plugins > Browse Repositories. Search for the Android WiFi ADB plug-in installation, then restart AS, click the right-most robot icon at the top of the AS to connect, and later a pop-up window in the lower right corner will indicate that the connection is successful. As shown in the following figure

This is the end of the introduction on "how to use ADB to debug the network in Android Studio". Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report