Use adb over tcpip in Android Studio?

前端 未结 5 1776
不知归路
不知归路 2020-12-12 10:47

Is it possible to show the adb logcat for a tcpip device in Android Studio? I am writing a application that utilizes the USB port and I cannot use

5条回答
  •  庸人自扰
    2020-12-12 11:04

    In android studio, you can create a one click solution.

    1. Go to File > Settings > Tools > External Tools
    2. Create a tool with the following settings, making sure to replace the path to adb with your path

    1. Press Ok and save the tool
    2. In Android studio, click Tools > External Tools > Android Over Wifi

    3. A prompt similar to this should pop up and you can type your phone's IP address here. (You can get this address from your phone when you enable ADB over network)

    1. After you enter the information required, you should now be connected. Congratz and enjoy wireless debugging :).

    EDIT 2019!!

    Another great answer was posted on this thread but was deleted, which mentioned the existence of an IntelliJ/AndStud plugin that automates the above process. I have not tested the plugin but here is the github page for it. Gl

提交回复
热议问题