-
Enable USB debugging on your device.
-
Connect the device to computer
-
Use these commands:
Get the “device id”
adb devices
example:
$ adb devices
List of devices attached
5856423841563398 device
emulator-5554 device
To specify the device when using logcat
adb -s "device id" logcat
example:
$ adb -s 5856423841563398 logcat
--------- beginning of crash
03-31 15:56:51.174 13547 13547 E AndroidRuntime: FATAL EXCEPTION: main