Log cat in android

被刻印的时光 ゝ 提交于 2019-12-31 05:32:09

问题


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.


回答1:


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



回答2:


if you are using eclipse IDE for development, you need to go to WINDOW->Show View->others->in that choose android->logcat...it will appear right beside your console....



来源:https://stackoverflow.com/questions/5271635/log-cat-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!