eclipse Android LogCat 不适用于模拟器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7228193/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android LogCat is not working for emulator
提问by Amit Battan
I am new in Android and java programming.
LogCat is woking fine for one of my emulator.
But same time it is not working for another emulator.
我是 Android 和 Java 编程的新手。
LogCat 对我的其中一个模拟器来说运行良好。
但同时它不适用于另一个模拟器。
Can any body tell me any specific setting for it.
任何机构都可以告诉我它的任何特定设置。
EDIT
@all DDMS Screenshot, I am using MAC operating system
编辑
@all DDMS 截图,我使用的是MAC 操作系统
@Shlublu
Its working fine with API Level 8 and Build In WVGA800
but not working with HVGA
sometime also not working with WVGA800
@Shlublu
它在 API Level 8 和 Build In WVGA800 下
工作正常,但
有时不能与 HVGA 一起工作,也不能与 WVGA800 一起工作
Amit Battan
阿米特·巴坦
回答by user370305
Look, top right side of your eclipse ide -> from java choose ddms -> then from ddms window bottom click on other -> devices -> then your emulator for which you want to show logcat Try this.
看,你的eclipse ide的右上角->从java中选择ddms->然后从ddms窗口底部点击其他->设备->然后你想要显示logcat的模拟器试试这个。
回答by Mohit Verma
Goto DDMS --> Select Device --> Select Name
转到 DDMS --> 选择设备 --> 选择名称
It may be Emulator 5554, Emulator 5556
可能是 Emulator 5554, Emulator 5556
回答by Kamal
Go to DDMS and select the Emulator you want to dispaly hte logCat. And come back to the JAVA perspective. It will show the logs of selected emulator.
转到 DDMS 并选择要显示 logCat 的模拟器。回到JAVA的角度。它将显示所选模拟器的日志。
回答by Anthony Nolan
if you run adb devices
you will get a list of devices attached to your Android Debug Bridge. You can run a command on a specific one by adding the -s switch, so this
如果您运行,adb devices
您将获得连接到您的 Android 调试桥的设备列表。您可以通过添加 -s 开关在特定命令上运行命令,因此这
adb -s devicename logcat
should give you what you need.
应该给你你需要的东西。
Anthony
安东尼