Log cat in android

后端 未结 2 1218
北恋
北恋 2021-01-26 08:14

I am a new android developer so I don\'t know how to use logcat. So kindly request that if you know then guide me.

2条回答
  •  日久生厌
    2021-01-26 09:11

    Connect your device, open a console window in the tools directory of your android sdk installation and run

    adb logcat 
    

    Or start an emulator and do the same.

    If there's more than one device connected you needed to pass the "-s" parameter specifying the devices. get them using

    adb devices
    

提交回复
热议问题