我有一个非常基本的 Android 应用程序。当我在 Android 虚拟设备上启动它并查看 LogCat 时,我看到许多错误和警告 - 大部分不是来 self 的应用程序代码,来自 com.android.*
和system_process
例如
05-12 14:45:05.554: E/ActivityThread(392): Failed to find provider info for com.android.inputmethod.latin.dictionarypack
05-12 14:45:05.564: E/BinaryDictionaryGetter(392): Could not find a dictionary pack
05-12 14:45:06.163: W/ContextImpl(997): Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1352 android.content.ContextWrapper.startService:450 android.content.ContextWrapper.startService:450 com.android.keychain.KeyChainBroadcastReceiver.onReceive:12 android.app.ActivityThread.handleReceiver:2376
05-12 14:52:06.206: E/ThrottleService(300): problem during onPollAlarm: java.lang.IllegalStateException: problem parsing stats: java.io.FileNotFoundException: /proc/net/xt_qtaguid/iface_stat_all: open failed: ENOENT (No such file or directory)
05-12 15:11:42.594: E/Trace(2448): error opening trace file: No such file or directory (2)
05-12 15:11:42.944: E/Trace(2464): error opening trace file: No such file or directory (2)
05-12 15:11:43.283: E/ActivityThread(2464): Failed to find provider info for com.google.settings
05-12 15:11:43.293: E/ActivityThread(2464): Failed to find provider info for com.google.settings
05-12 15:11:43.424: E/DictionaryBackupAgent(455): Couldn't read from the cursor
所以这是我的问题:这些是否正常,或者是否有一些我需要注意的真实信息。
最佳答案
大多数是“正常”的,因为每个设备(模拟器或物理设备)都会不断输出错误和警告。
这是您可能需要引用的另一篇文章。 Logcat log warning/errors
关于java - 使用 AVD 进行测试时,LogCat 显示来自 Android 的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23614381/