android adb调试_使用插件或adb进行android无线调试

android adb调试

As Android developers, we daily code and run our applications to check the output. I think the most fascinating aspect of Android development is that we see the results instantly on our mobile. But sometimes we feel disgusted about USB disconnections while debugging or running our apps.

作为Android开发人员,我们每天编写代码并运行我们的应用程序以检查输出。 我认为Android开发最令人着迷的方面是,我们可以立即在移动设备上看到结果。 但是有时候,在调试或运行我们的应用程序时,我们会对USB断开感到厌恶。

The reasons may be many, like broken or non-functional cables or someone unexpectedly pulls the cable. The most preferred solution to this problem is wireless debugging.

原因可能有很多,例如电缆损坏或无法正常工作,或者有人意外拉扯电缆。 解决此问题的最佳方法是无线调试。

In this article, let’s discuss two ways of connecting a device wirelessly to debug applications. The first way is the Android WIFI ADB plugin approach, and the other approach is to connect the device by its IP address.

在本文中,让我们讨论将设备无线连接到调试应用程序的两种方法。 第一种方法是Android WIFI ADB插件方法,另一种方法是通过其IP地址连接设备。

插件方式 (Plugin Approach)

Plugins are nothing but plug-and-play components. Android WIFI ADB is a plugin available in Android Studio that helps you to connect your system to devices over a Wi-Fi network. It allows you to quickly connect your Android device over Wi-Fi by pressing one button, to install, run, and debug your applications without a USB connection. (If you don’t know how plugins work, check out my previous article on Android Studio Plugin.)

插件不过是即插即用的组件。 Android WIFI ADB是Android Studio中可用的插件,可帮助您通过Wi-Fi网络将系统连接到设备。 它使您可以通过按一个按钮快速通过Wi-Fi连接Android设备,无需USB连接即可安装,运行和调试应用程序。 (如果您不知道插件的工作方式,请查看我上一篇有关Android Studio插件的文章。)

Once the device is connected, you no longer need the USB cable to debug.

连接设备后,您不再需要USB电缆进行调试。

Let’s check the steps to follow on how to connect a device.

让我们检查有关如何连接设备的步骤。

步骤1.安装Android WIFI ADB插件 (Step 1. Install the Android WIFI ADB plugin)

To find the plugins section, go to preferences and select the plugins on the right side in Android Studio. Then, you’ll find the following screen:

要找到插件部分,请转到首选项,然后在Android Studio中选择右侧的插件。 然后,您将找到以下屏幕:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值