gpt4 book ai didi

android - logcat 没有显示我的程序 android 的任何日志记录

转载 作者:行者123 更新时间:2023-11-29 18:16:37 26 4
gpt4 key购买 nike

当我启动 eclipse 并启动模拟器时,我可以看到与配置和设置模拟器环境相关的初始日志记录。但是如果我运行我的任何 android 应用程序,logcat 不会跟踪一行。

我试过一次又一次地重新启动它,但没有帮助。重新启动 eclipse 也无济于事。可能是什么原因?昨天工作正常。

===================================编辑 1:-

下面我粘贴了模拟器启动时显示的所有错误消息:-

10-13 16:47:15.497: ERROR/PhonePolicy(31): Could not preload class for phone policy: com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback
10-13 16:47:38.104: ERROR/BatteryService(73): usbOnlinePath not found
10-13 16:47:38.104: ERROR/BatteryService(73): batteryVoltagePath not found
10-13 16:47:38.104: ERROR/BatteryService(73): batteryTemperaturePath not found
10-13 16:47:38.144: ERROR/SurfaceFlinger(73): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
10-13 16:47:48.817: ERROR/EventHub(73): could not get driver version for /dev/input/mouse0, Not a typewriter
10-13 16:47:48.817: ERROR/EventHub(73): could not get driver version for /dev/input/mice, Not a typewriter
10-13 16:47:49.344: ERROR/WifiService(73): Invoking mWifiStateMachine.setWifiEnabled
10-13 16:47:52.438: ERROR/ThrottleService(73): Could not open GPS configuration file /etc/gps.conf
10-13 16:47:52.457: ERROR/NetworkTimeUpdateService(73): Could not open GPS configuration file /etc/gps.conf
10-13 16:47:52.464: ERROR/NetworkTimeUpdateService(73): NTP server address not found, not syncing to NTP time
10-13 16:47:52.844: ERROR/logwrapper(142): executing /system/bin/tc failed: No such file or directory
10-13 16:47:53.064: ERROR/logwrapper(144): executing /system/bin/tc failed: No such file or directory
10-13 16:47:53.115: ERROR/logwrapper(147): executing /system/bin/tc failed: No such file or directory
10-13 16:48:05.364: ERROR/SoundPool(73): error loading /system/media/audio/ui/Effect_Tick.ogg
10-13 16:48:05.514: ERROR/SoundPool(73): error loading /system/media/audio/ui/Effect_Tick.ogg
10-13 16:48:05.535: ERROR/SoundPool(73): error loading /system/media/audio/ui/Effect_Tick.ogg
10-13 16:48:05.555: ERROR/SoundPool(73): error loading /system/media/audio/ui/Effect_Tick.ogg
10-13 16:48:05.624: ERROR/SoundPool(73): error loading /system/media/audio/ui/Effect_Tick.ogg
10-13 16:48:05.684: ERROR/SoundPool(73): error loading /system/media/audio/ui/KeypressStandard.ogg
10-13 16:48:05.704: ERROR/SoundPool(73): error loading /system/media/audio/ui/KeypressSpacebar.ogg
10-13 16:48:05.755: ERROR/SoundPool(73): error loading /system/media/audio/ui/KeypressDelete.ogg
10-13 16:48:05.764: ERROR/SoundPool(73): error loading /system/media/audio/ui/KeypressReturn.ogg
10-13 16:48:31.622: ERROR/ActivityManager(73): Start proc com.android.email for broadcast com.android.email/.service.EmailBroadcastReceiver: pid=273 uid=10013 gids={3003, 1015}Load: 8.11 / 2.1 / 0.71
10-13 16:48:31.622: ERROR/ActivityManager(73): CPU usage from 1368ms to -18166ms ago:
10-13 16:48:31.622: ERROR/ActivityManager(73): 38% 73/system_server: 25% user + 12% kernel / faults: 8480 minor 2 major
10-13 16:48:31.622: ERROR/ActivityManager(73): 7.8% 149/com.android.launcher: 7% user + 0.8% kernel / faults: 1009 minor 6 major
10-13 16:48:31.622: ERROR/ActivityManager(73): 6.7% 139/com.android.phone: 5.2% user + 1.5% kernel / faults: 521 minor
10-13 16:48:31.622: ERROR/ActivityManager(73): 6.3% 40/adbd: 0.3% user + 5.9% kernel / faults: 20 minor
10-13 16:48:31.622: ERROR/ActivityManager(73): 5.8% 84/bootanimation: 4.8% user + 1% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 5.5% 124/com.android.systemui: 4.8% user + 0.7% kernel / faults: 799 minor 2 major
10-13 16:48:31.622: ERROR/ActivityManager(73): 4.3% 198/android.process.acore: 3.8% user + 0.4% kernel / faults: 414 minor
10-13 16:48:31.622: ERROR/ActivityManager(73): 2.1% 31/zygote: 1.7% user + 0.3% kernel / faults: 246 minor
10-13 16:48:31.622: ERROR/ActivityManager(73): 2% 214/com.android.mms: 1.3% user + 0.6% kernel / faults: 793 minor 2 major
10-13 16:48:31.622: ERROR/ActivityManager(73): 0.4% 154/android.process.media: 0.2% user + 0.2% kernel / faults: 20 minor
10-13 16:48:31.622: ERROR/ActivityManager(73): 0.2% 72/logcat: 0% user + 0.2% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 0% 38/rild: 0% user + 0% kernel / faults: 1 minor
10-13 16:48:31.622: ERROR/ActivityManager(73): +0% 246/com.android.deskclock: 0% user + 0% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): +0% 273/com.android.email: 0% user + 0% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 100% TOTAL: 68% user + 29% kernel + 0.8% irq + 1.2% softirq
10-13 16:48:31.622: ERROR/ActivityManager(73): CPU usage from 15277ms to 16982ms later:
10-13 16:48:31.622: ERROR/ActivityManager(73): 24% 73/system_server: 14% user + 10% kernel / faults: 109 minor
10-13 16:48:31.622: ERROR/ActivityManager(73): 10% 90/ActivityManager: 6.2% user + 3.8% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 7.6% 81/SurfaceFlinger: 4.3% user + 3.3% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 3.8% 103/WindowManagerPo: 3.8% user + 0% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 1.4% 223/Binder Thread #: 0.9% user + 0.4% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 1.4% 232/Binder Thread #: 1.4% user + 0% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 0.9% 78/Compiler: 0% user + 0.9% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 0.9% 79/Binder Thread #: 0.4% user + 0.4% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 0.9% 168/Binder Thread #: 0% user + 0.9% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 0.9% 240/Binder Thread #: 0.4% user + 0.4% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 0.9% 241/Binder Thread #: 0.4% user + 0.4% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 0.4% 73/system_server: 0% user + 0.4% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 0.4% 104/InputDispatcher: 0% user + 0.4% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 0.4% 173/Binder Thread #: 0.4% user + 0% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 0.4% 208/Thread-62: 0% user + 0.4% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 0.4% 242/Binder Thread #: 0.4% user + 0% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 9.9% 31/zygote: 9.3% user + 0.5% kernel / faults: 43 minor
10-13 16:48:31.622: ERROR/ActivityManager(73): 9.4% 149/com.android.launcher: 7.8% user + 1.6% kernel / faults: 69 minor
10-13 16:48:31.622: ERROR/ActivityManager(73): 8.9% 149/ndroid.launcher: 8.3% user + 0.5% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 0.5% 153/HeapWorker: 0.5% user + 0% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 0.5% 178/launcher-loader: 0% user + 0.5% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 8.6% 40/adbd: 0% user + 8.6% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 5.5% 265/adbd: 0% user + 5.5% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 4.3% 40/adbd: 0.6% user + 3.7% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 1.8% 65/adbd: 0% user + 1.8% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 0.6% 64/adbd: 0% user + 0.6% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 8.4% 273/com.android.email: 7.2% user + 1.2% kernel / faults: 237 minor 1 major
10-13 16:48:31.622: ERROR/ActivityManager(73): 8.4% 273/m.android.email: 7.2% user + 1.2% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 6.1% 84/bootanimation: 5.6% user + 0.5% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 9.2% 89/BootAnimation: 8.2% user + 1% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 6.1% 124/com.android.systemui: 4.4% user + 1.6% kernel / faults: 62 minor
10-13 16:48:31.622: ERROR/ActivityManager(73): 13% 124/ndroid.systemui: 11% user + 2.2% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 1.1% 125/HeapWorker: 1.1% user + 0% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 1.1% 130/Compiler: 0.5% user + 0.5% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 2.1% 139/com.android.phone: 1.5% user + 0.5% kernel / faults: 1 minor
10-13 16:48:31.622: ERROR/ActivityManager(73): 3.1% 140/HeapWorker: 2.6% user + 0.5% kernel
10-13 16:48:31.622: ERROR/ActivityManager(73): 100% TOTAL: 66% user + 30% kernel + 1.3% irq + 1.3% softirq
10-13 16:48:31.763: ERROR/TelephonyManager(73): Hidden constructor called more than once per process!
10-13 16:48:31.763: ERROR/TelephonyManager(73): Original: android, new: android
10-13 16:48:32.172: ERROR/InputDispatcher(73): channel '414c4c20 NotificationPanel (server)' ~ Consumer closed input channel or an error occurred. events=0x8
10-13 16:48:32.172: ERROR/InputDispatcher(73): channel '414c4c20 NotificationPanel (server)' ~ Channel is unrecoverably broken and will be disposed!
10-13 16:48:32.502: ERROR/InputDispatcher(73): Received spurious receive callback for unknown input channel. fd=178, events=0x8
10-13 16:48:32.502: ERROR/InputDispatcher(73): Received spurious receive callback for unknown input channel. fd=176, events=0x8
10-13 16:48:32.502: ERROR/InputDispatcher(73): Received spurious receive callback for unknown input channel. fd=189, events=0x8

最佳答案

如果 adb 从内存中被杀死,它就会停止工作。如果你看到类似的问题,关闭 logcat 并在命令提示符下键入,

亚行杀死服务器

然后重启eclipse。我打赌它会起作用。

关于android - logcat 没有显示我的程序 android 的任何日志记录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7757629/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com