如何查找非市场 Android 应用程序在设备中运行时的错误
我正在尝试在我的设备中运行非市场应用程序。我只是想从那个 .apk 文件中学习。该应用程序的教程说它工作得很好。该应用程序可以在我的一台设备上运行,但不能在其他设备上运行。我怎样才能知道导致应用程序崩溃的错误......
i am trying to run a non market app in my device. I am just trying to learn from that .apk file. The tutorial of the app says that it works good and fine. The app has worked in one of my device, but not working in other device. How can i know the errors which causing the app to get crashed....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我建议您不需要安装和运行 SDK 来查找堆栈跟踪。市场上有许多应用程序可以让您在设备上查看日志猫。
但我要注意的是,如果您不是软件工程师,或者没有 android/java 的具体知识,那么日志的内容可能对您没有多大用处。
I would suggest that you dont need to install and run the SDK to find out the stack trace. There are many applications available in the market that will let you view the log cat on the device.
I would beware though, that if you are not a software engineer, or dont have specific knowledge of android/java then the contents of the log might not be of much use to you.
Android开发环境搭建好了吗?如果您使用的是 Eclipse,则可以:通过 USB 连接设备,在 DDMS 透视图的 Devices 窗格中选择它,然后观看 LogCat em> 异常或其他问题原因线索的窗口。
Do you have an Android development environment set up? If you're using Eclipse, you can: connect your device via USB, select it in the Devices pane of the DDMS perspective, and watch the LogCat window for exceptions or other clues to the cause of the problem.
您可以使用远程堆栈跟踪插件,例如 http://code.google.com/p/ android-remote-stacktrace/
You can use remote stack trace plugin like http://code.google.com/p/android-remote-stacktrace/