Android logcat errors

允我心安 提交于 2019-12-11 11:47:38

问题


I am new to Android, but not new to Java, and I am experienced with Eclipse. However, I just installed the newest Android SDK from developer.Android.com and installed in Eclipse 4.2 Java EE version with latest ADT.

I went through the tutorial about installation, and ran the Hello World example in an emulator.

The app seems to run fine.

The Console output looks OK, But the LogCat is crazy with RED.

Here's an example of some of the errors it outputs during a running session:

Failed to open libwvm.so
Failed to extract an album art
Error opening trace file: No such file or directory (2)
batteryVoltagePath not found
error loading /system/meida/audio/ui/Lock.ogg
runIptablesCmd(): failed /system/bin […]
at java.util.concurrent.threadpoolExecutor.runWorker […]
Illegal state exception
Class not found for preloading: android.animation.ValueAnimator

Note: I don't expect anyone to debug this since it's a jumble, AND there's nothing to debug since I didn't code anything! I just want to know if this behavior is normal for the logcat when using an emulator.

I've never seen this amount of errors and warnings on a simple Hello World, especially when it seems to run just fine.

If you're wondering, I followed the tutorial on "Installing the SDK" to a tee.


回答1:


It's pretty common to see many errors in android emulator logcat, unfortunately. I wouldn't worry about this unless you are having problems with your app.




回答2:


Since logcat logs all the events happening on your device including touch events or accessing google apis that are needed to background sync your phone. So it will show you some errors in red. That is normal, if there is any problem with your application, it will point out to that error prone line with its line number.



来源:https://stackoverflow.com/questions/12403330/android-logcat-errors

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!