問題描述
我正在 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 應用程序?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!