我正在 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模板网!
使用 GPS 获取用户的当前位置Get user#39;s current location using GPS(使用 GPS 获取用户的当前位置)
requestLocationUpdate() 抛出的 IllegalArgumentExceptionIllegalArgumentException thrown by requestLocationUpdate()(requestLocationUpdate() 抛出的 IllegalArgumentException)
LocationManager 的 getLastKnownLocation 有多可靠,多久更How reliable is LocationManager#39;s getLastKnownLocation and how often is it updated?(LocationManager 的 getLastKnownLocation 有多可靠,多久更新
如何检测位置提供者?GPS 或网络提供商How to detect Location Provider ? GPS or Network Provider(如何检测位置提供者?GPS 或网络提供商)
在应用启动期间获取当前位置Get current location during app launch(在应用启动期间获取当前位置)
locationManager.getLastKnownLocation() 返回 nulllocationManager.getLastKnownLocation() return null(locationManager.getLastKnownLocation() 返回 null)