我正在 android 中开发一个 kivy 应用程序.编译应用程序并运行后,如果有崩溃或某种错误,我怎样才能找到具体的错误?
I'm developing a kivy app in android. After compiling the app and running it, if there is a crash or sort of errors, how can I find the specific error?
听说有一个日志程序.
你要的工具叫logcat.
The tool you want is called logcat.
文档是 http://developer.android.com/tools/help/logcat.html
它将显示来自运行 Android 程序的大量日志信息,因此有助于应用程序名称和日志级别等过滤器.
It will display lots of log info from running Android programs, so it helps to apply filters such as the program name and log level.
来自文档:
您可以将 logcat 作为 adb 命令运行,也可以直接在 shell 提示符下运行您的模拟器或连接的设备.要使用 adb 查看日志输出,导航到您的 SDK platform-tools/目录并执行:
You can run logcat as an adb command or directly in a shell prompt of your emulator or connected device. To view log output using adb, navigate to your SDK platform-tools/ directory and execute:
adb logcat
这篇关于如何在 android 中调试 kivy 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!