Connect adb

1. cd [location]\Sdk\platform-tools

2. adb devices

3. adb tcpip 5555

4. adb connect [yourDeviceIP]



Nếu xảy ra lỗi " No connection could be made because the target machine actively refused it " :


1. stay connect via USB

2. connect to your WIFI network (computer and mobile device both)

3.ping DeviceIP (must be have ping to your device)

4. adb kill-server

5.adb usb

6.adb tcpip 5555

*unplug usb cable (as per @captain_majid 's comment)

7. adb connect [yourDeviceIP]

8. adb devices (must be see two device names , one of them is by deviceIP)

9. unplug USB cable 


In my case:

E:

cd androidsdk\Sdk\platform-tools

adb devices

adb tcpip 5555

adb connect [yourDeviceIP]

Nhận xét

Bài đăng phổ biến từ blog này

Flutter 4.5 - Custom theme, font, image

Flutter 1.2 - Flutter Architecture

Flutter 2.5 - First App | Building a Widget Tree