Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是一个新的 android 开发者,所以我不知道如何使用 logcat。所以,如果你知道,请指导我。
连接您的设备,在您的 android sdk 安装的工具目录中打开一个控制台窗口并运行
adb logcat
或者启动一个模拟器并做同样的事情。
如果连接了多个设备,则需要传递指定设备的“-s”参数。让他们使用
adb devices
如果您使用 Eclipse IDE 进行开发,则需要转到 WINDOW->Show View->others-> 选择 android->logcat ...它会出现在您的控制台旁边...。