Debugging considerations
When debugging applications that use USB accessory or host features, you most likely will have USB hardware connected to your Android-powered device. This will prevent you from having an adb
connection to the Android-powered device via USB. You can still access adb
over a network connection. To enable adb
over a network connection:
- Connect the Android-powered device via USB to your computer.
- From your SDK
platform-tools/
directory, enteradb tcpip 5555
at the command prompt. - Enter
adb connect <device-ip-address>:5555
You should now be connected to the Android-powered device and can issue the usualadb
commands likeadb logcat
. - To set your device to listen on USB, enter
adb usb
.
STEP 1. 컴퓨터 - 기기 USB 연결 상태에서 TCPIP 모드 진입
adb -d tcpip 5555
STEP 2. USB 연결 해제 후
adb connect 해당기기 ip:5555
STEP 3. android studio 에서 원격디버깅' 버튼 클릭
* 재빌드 시에는 step2부터 다시 반복
참고) https://developer.android.com/guide/topics/connectivity/usb/index.html
반응형
'Mobile > Android' 카테고리의 다른 글
WebView <-> 안드로이드 통신 (0) | 2016.08.20 |
---|---|
ANDROID | WEBVIEW (0) | 2016.08.18 |
ANDROID | Fragment LiftCycle (0) | 2016.08.17 |
UI | android systemUI Handle (0) | 2016.08.17 |
UI | round shape (0) | 2016.08.08 |