Android Studio wireless ADB error (10061)

前端 未结 27 1386
一生所求
一生所求 2020-12-13 00:46

It seems that wireless ADB has more and more issues each time I update Android Studio. Using 2.1.1, I\'m now unable to connect to my tablet using the command:



        
相关标签:
27条回答
  • 2020-12-13 01:30

    Usually the 'target machine actively refused it' message is displayed when the target machine's 'ADB debugging' feature is not turned ON. It is turned off by default in almost all devices unless we enable 'developer options'. So whenever you land on this error, make sure you go to the settings of your target machine and trickle to the developer/development area and somewhere there should be a place to enable ADB.

    0 讨论(0)
  • 2020-12-13 01:31

    In case of me, i tried different port 5557 than again 5555,

    1. adb tcpip 5557
    2. adb connect device_ip_address

    gives same error(10061) than again tried with,

    1. adb tcpip 5555
    2. adb connect device_ip_address

    result: connected

    that works for me(while the other thing is ok like as developer option is on and connected to same wifi)

    0 讨论(0)
  • 2020-12-13 01:31

    Following steps are standard ones to follow( mostly same as previous answers):-

    • adb tcpip 5555.
    • adb connect your_device_ip_address.
    • adb devices (to see if devices got connected).

    But in some cases above steps gives error like "unable to connect to device. Make sure that your computer and your device are connected to the same WiFi network." And you notice the devices are already on the same network.

    In this case, install this plugin "Wifi ADB Ultimate" and follow below steps.

    1. Connect the device once through USB.
    2. Refresh the list to check whether its connected.
    3. Go to About Phone > Status > IP Address and note your IP address(e.g. 198.162.0.105).
    4. Come back to Android Studio and fill in this IP as done in below photo and hit the run button.
    0 讨论(0)
  • 2020-12-13 01:32

    when restart device then your port also channge so hit command below

    1- adb kill-server

    2- connect your phone to pc with usb cable

    3- adb tcpip 5555

    4- adb connect (your device ip):5555

    0 讨论(0)
  • 2020-12-13 01:33

    For Android TV, Connect PC and TV in the same network (wi-fi), enable developer option, and go to developer option and enable ADB debugging option.Then run the commands given below

     1. ping <ur IP> (check the connection)
     2. adb disconnect (to remove all the previous connections)
     3. adb connect <Ur IP>
     4. adb install app_name.apk
    
    0 讨论(0)
  • 2020-12-13 01:35

    I solved the problem by enabling USB Debugging in Developer Options.

    0 讨论(0)
提交回复
热议问题