如何识别logcat中的错误
我在 logcat 中遇到一些错误,但我不知道如何识别它。请帮我找出这个问题。运行模拟器后我的系统崩溃了。我不知道我的项目中有什么错误。
提前致谢。
02-14 16:45:44.527: D/dalvikvm(562): Not late-enabling CheckJNI (already on)
02-14 16:45:46.407: I/ActivityThread(562): Pub polito.mailandroid: polito.mailandroid.ui.ElementProvider
02-14 16:45:46.417: D/AndroidRuntime(562): Shutting down VM
02-14 16:45:46.417: W/dalvikvm(562): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
02-14 16:45:46.487: E/AndroidRuntime(562): FATAL EXCEPTION: main
02-14 16:45:46.487: E/AndroidRuntime(562): java.lang.RuntimeException: Unable to get provider polito.mailandroid.ui.ElementProvider: java.lang.ClassNotFoundException: polito.mailandroid.ui.ElementProvider
02-14 16:45:46.487: E/AndroidRuntime(562): at android.app.ActivityThread.installProvider(ActivityThread.java:4240)
02-14 16:45:46.487: E/AndroidRuntime(562): at android.app.ActivityThread.installContentProviders(ActivityThread.java:3992)
02-14 16:45:46.487: E/AndroidRuntime(562): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3946)
02-14 16:45:46.487: E/AndroidRuntime(562): at android.app.ActivityThread.access$1300(ActivityThread.java:123)
02-14 16:45:46.487: E/AndroidRuntime(562): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)
02-14 16:45:46.487: E/AndroidRuntime(562): at android.os.Handler.dispatchMessage(Handler.java:99)
02-14 16:45:46.487: E/AndroidRuntime(562): at android.os.Looper.loop(Looper.java:137)
02-14 16:45:46.487: E/AndroidRuntime(562): at android.app.ActivityThread.main(ActivityThread.java:4424)
02-14 16:45:46.487: E/AndroidRuntime(562): at java.lang.reflect.Method.invokeNative(Native Method)
02-14 16:45:46.487: E/AndroidRuntime(562): at java.lang.reflect.Method.invoke(Method.java:511)
02-14 16:45:46.487: E/AndroidRuntime(562): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
02-14 16:45:46.487: E/AndroidRuntime(562): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
02-14 16:45:46.487: E/AndroidRuntime(562): at dalvik.system.NativeStart.main(Native Method)
02-14 16:45:46.487: E/AndroidRuntime(562): Caused by: java.lang.ClassNotFoundException: polito.mailandroid.ui.ElementProvider
02-14 16:45:46.487: E/AndroidRuntime(562): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
02-14 16:45:46.487: E/AndroidRuntime(562): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
02-14 16:45:46.487: E/AndroidRuntime(562): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
02-14 16:45:46.487: E/AndroidRuntime(562): at android.app.ActivityThread.installProvider(ActivityThread.java:4225)
02-14 16:45:46.487: E/AndroidRuntime(562): ... 12 more
02-14 16:46:16.637: I/Process(562): Sending signal. PID: 562 SIG: 9
02-14 17:00:46.667: I/ActivityThread(644): Pub polito.mailandroid: polito.mailandroid.ui.ElementProvider
02-14 17:00:46.667: D/AndroidRuntime(644): Shutting down VM
02-14 17:00:46.717: W/dalvikvm(644): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
02-14 17:00:46.727: E/AndroidRuntime(644): FATAL EXCEPTION: main
02-14 17:00:46.727: E/AndroidRuntime(644): java.lang.RuntimeException: Unable to get provider polito.mailandroid.ui.ElementProvider: java.lang.ClassNotFoundException: polito.mailandroid.ui.ElementProvider
02-14 17:00:46.727: E/AndroidRuntime(644): at android.app.ActivityThread.installProvider(ActivityThread.java:4240)
02-14 17:00:46.727: E/AndroidRuntime(644): at android.app.ActivityThread.installContentProviders(ActivityThread.java:3992)
02-14 17:00:46.727: E/AndroidRuntime(644): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3946)
02-14 17:00:46.727: E/AndroidRuntime(644): at android.app.ActivityThread.access$1300(ActivityThread.java:123)
02-14 17:00:46.727: E/AndroidRuntime(644): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)
02-14 17:00:46.727: E/AndroidRuntime(644): at android.os.Handler.dispatchMessage(Handler.java:99)
02-14 17:00:46.727: E/AndroidRuntime(644): at android.os.Looper.loop(Looper.java:137)
02-14 17:00:46.727: E/AndroidRuntime(644): at android.app.ActivityThread.main(ActivityThread.java:4424)
02-14 17:00:46.727: E/AndroidRuntime(644): at java.lang.reflect.Method.invokeNative(Native Method)
02-14 17:00:46.727: E/AndroidRuntime(644): at java.lang.reflect.Method.invoke(Method.java:511)
02-14 17:00:46.727: E/AndroidRuntime(644): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
02-14 17:00:46.727: E/AndroidRuntime(644): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
02-14 17:00:46.727: E/AndroidRuntime(644): at dalvik.system.NativeStart.main(Native Method)
02-14 17:00:46.727: E/AndroidRuntime(644): Caused by: java.lang.ClassNotFoundException: polito.mailandroid.ui.ElementProvider
02-14 17:00:46.727: E/AndroidRuntime(644): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
02-14 17:00:46.727: E/AndroidRuntime(644): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
02-14 17:00:46.727: E/AndroidRuntime(644): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
02-14 17:00:46.727: E/AndroidRuntime(644): at android.app.ActivityThread.installProvider(ActivityThread.java:4225)
02-14 17:00:46.727: E/AndroidRuntime(644): ... 12 more
02-14 17:09:00.347: I/ActivityThread(692): Pub polito.mailandroid: polito.mailandroid.ui.ElementProvider
02-14 17:09:00.437: D/AndroidRuntime(692): Shutting down VM
02-14 17:09:00.437: W/dalvikvm(692): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
02-14 17:09:00.457: E/AndroidRuntime(692): FATAL EXCEPTION: main
02-14 17:09:00.457: E/AndroidRuntime(692): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{polito.mailandroid.ui/polito.mailandroid.ui.ui.LoginUI}: java.lang.ClassNotFoundException: polito.mailandroid.ui.ui.LoginUI
02-14 17:09:00.457: E/AndroidRuntime(692): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1880)
02-14 17:09:00.457: E/AndroidRuntime(692): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
02-14 17:09:00.457: E/AndroidRuntime(692): at android.app.ActivityThread.access$600(ActivityThread.java:123)
02-14 17:09:00.457: E/AndroidRuntime(692): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
02-14 17:09:00.457: E/AndroidRuntime(692): at android.os.Handler.dispatchMessage(Handler.java:99)
02-14 17:09:00.457: E/AndroidRuntime(692): at android.os.Looper.loop(Looper.java:137)
02-14 17:09:00.457: E/AndroidRuntime(692): at android.app.ActivityThread.main(ActivityThread.java:4424)
02-14 17:09:00.457: E/AndroidRuntime(692): at java.lang.reflect.Method.invokeNative(Native Method)
02-14 17:09:00.457: E/AndroidRuntime(692): at java.lang.reflect.Method.invoke(Method.java:511)
02-14 17:09:00.457: E/AndroidRuntime(692): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
02-14 17:09:00.457: E/AndroidRuntime(692): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
02-14 17:09:00.457: E/AndroidRuntime(692): at dalvik.system.NativeStart.main(Native Method)
02-14 17:09:00.457: E/AndroidRuntime(692): Caused by: java.lang.ClassNotFoundException: polito.mailandroid.ui.ui.LoginUI
02-14 17:09:00.457: E/AndroidRuntime(692): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
02-14 17:09:00.457: E/AndroidRuntime(692): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
02-14 17:09:00.457: E/AndroidRuntime(692): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
02-14 17:09:00.457: E/AndroidRuntime(692): at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
02-14 17:09:00.457: E/AndroidRuntime(692): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)
02-14 17:09:00.457: E/AndroidRuntime(692): ... 11 more
I have some error in logcat but i dont know how to identify it. pls help me to find out this problem. My system crashes after running the emulator. I don't know what is an error in my project.
Thanks in advance.
02-14 16:45:44.527: D/dalvikvm(562): Not late-enabling CheckJNI (already on)
02-14 16:45:46.407: I/ActivityThread(562): Pub polito.mailandroid: polito.mailandroid.ui.ElementProvider
02-14 16:45:46.417: D/AndroidRuntime(562): Shutting down VM
02-14 16:45:46.417: W/dalvikvm(562): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
02-14 16:45:46.487: E/AndroidRuntime(562): FATAL EXCEPTION: main
02-14 16:45:46.487: E/AndroidRuntime(562): java.lang.RuntimeException: Unable to get provider polito.mailandroid.ui.ElementProvider: java.lang.ClassNotFoundException: polito.mailandroid.ui.ElementProvider
02-14 16:45:46.487: E/AndroidRuntime(562): at android.app.ActivityThread.installProvider(ActivityThread.java:4240)
02-14 16:45:46.487: E/AndroidRuntime(562): at android.app.ActivityThread.installContentProviders(ActivityThread.java:3992)
02-14 16:45:46.487: E/AndroidRuntime(562): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3946)
02-14 16:45:46.487: E/AndroidRuntime(562): at android.app.ActivityThread.access$1300(ActivityThread.java:123)
02-14 16:45:46.487: E/AndroidRuntime(562): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)
02-14 16:45:46.487: E/AndroidRuntime(562): at android.os.Handler.dispatchMessage(Handler.java:99)
02-14 16:45:46.487: E/AndroidRuntime(562): at android.os.Looper.loop(Looper.java:137)
02-14 16:45:46.487: E/AndroidRuntime(562): at android.app.ActivityThread.main(ActivityThread.java:4424)
02-14 16:45:46.487: E/AndroidRuntime(562): at java.lang.reflect.Method.invokeNative(Native Method)
02-14 16:45:46.487: E/AndroidRuntime(562): at java.lang.reflect.Method.invoke(Method.java:511)
02-14 16:45:46.487: E/AndroidRuntime(562): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
02-14 16:45:46.487: E/AndroidRuntime(562): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
02-14 16:45:46.487: E/AndroidRuntime(562): at dalvik.system.NativeStart.main(Native Method)
02-14 16:45:46.487: E/AndroidRuntime(562): Caused by: java.lang.ClassNotFoundException: polito.mailandroid.ui.ElementProvider
02-14 16:45:46.487: E/AndroidRuntime(562): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
02-14 16:45:46.487: E/AndroidRuntime(562): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
02-14 16:45:46.487: E/AndroidRuntime(562): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
02-14 16:45:46.487: E/AndroidRuntime(562): at android.app.ActivityThread.installProvider(ActivityThread.java:4225)
02-14 16:45:46.487: E/AndroidRuntime(562): ... 12 more
02-14 16:46:16.637: I/Process(562): Sending signal. PID: 562 SIG: 9
02-14 17:00:46.667: I/ActivityThread(644): Pub polito.mailandroid: polito.mailandroid.ui.ElementProvider
02-14 17:00:46.667: D/AndroidRuntime(644): Shutting down VM
02-14 17:00:46.717: W/dalvikvm(644): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
02-14 17:00:46.727: E/AndroidRuntime(644): FATAL EXCEPTION: main
02-14 17:00:46.727: E/AndroidRuntime(644): java.lang.RuntimeException: Unable to get provider polito.mailandroid.ui.ElementProvider: java.lang.ClassNotFoundException: polito.mailandroid.ui.ElementProvider
02-14 17:00:46.727: E/AndroidRuntime(644): at android.app.ActivityThread.installProvider(ActivityThread.java:4240)
02-14 17:00:46.727: E/AndroidRuntime(644): at android.app.ActivityThread.installContentProviders(ActivityThread.java:3992)
02-14 17:00:46.727: E/AndroidRuntime(644): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3946)
02-14 17:00:46.727: E/AndroidRuntime(644): at android.app.ActivityThread.access$1300(ActivityThread.java:123)
02-14 17:00:46.727: E/AndroidRuntime(644): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)
02-14 17:00:46.727: E/AndroidRuntime(644): at android.os.Handler.dispatchMessage(Handler.java:99)
02-14 17:00:46.727: E/AndroidRuntime(644): at android.os.Looper.loop(Looper.java:137)
02-14 17:00:46.727: E/AndroidRuntime(644): at android.app.ActivityThread.main(ActivityThread.java:4424)
02-14 17:00:46.727: E/AndroidRuntime(644): at java.lang.reflect.Method.invokeNative(Native Method)
02-14 17:00:46.727: E/AndroidRuntime(644): at java.lang.reflect.Method.invoke(Method.java:511)
02-14 17:00:46.727: E/AndroidRuntime(644): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
02-14 17:00:46.727: E/AndroidRuntime(644): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
02-14 17:00:46.727: E/AndroidRuntime(644): at dalvik.system.NativeStart.main(Native Method)
02-14 17:00:46.727: E/AndroidRuntime(644): Caused by: java.lang.ClassNotFoundException: polito.mailandroid.ui.ElementProvider
02-14 17:00:46.727: E/AndroidRuntime(644): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
02-14 17:00:46.727: E/AndroidRuntime(644): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
02-14 17:00:46.727: E/AndroidRuntime(644): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
02-14 17:00:46.727: E/AndroidRuntime(644): at android.app.ActivityThread.installProvider(ActivityThread.java:4225)
02-14 17:00:46.727: E/AndroidRuntime(644): ... 12 more
02-14 17:09:00.347: I/ActivityThread(692): Pub polito.mailandroid: polito.mailandroid.ui.ElementProvider
02-14 17:09:00.437: D/AndroidRuntime(692): Shutting down VM
02-14 17:09:00.437: W/dalvikvm(692): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
02-14 17:09:00.457: E/AndroidRuntime(692): FATAL EXCEPTION: main
02-14 17:09:00.457: E/AndroidRuntime(692): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{polito.mailandroid.ui/polito.mailandroid.ui.ui.LoginUI}: java.lang.ClassNotFoundException: polito.mailandroid.ui.ui.LoginUI
02-14 17:09:00.457: E/AndroidRuntime(692): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1880)
02-14 17:09:00.457: E/AndroidRuntime(692): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
02-14 17:09:00.457: E/AndroidRuntime(692): at android.app.ActivityThread.access$600(ActivityThread.java:123)
02-14 17:09:00.457: E/AndroidRuntime(692): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
02-14 17:09:00.457: E/AndroidRuntime(692): at android.os.Handler.dispatchMessage(Handler.java:99)
02-14 17:09:00.457: E/AndroidRuntime(692): at android.os.Looper.loop(Looper.java:137)
02-14 17:09:00.457: E/AndroidRuntime(692): at android.app.ActivityThread.main(ActivityThread.java:4424)
02-14 17:09:00.457: E/AndroidRuntime(692): at java.lang.reflect.Method.invokeNative(Native Method)
02-14 17:09:00.457: E/AndroidRuntime(692): at java.lang.reflect.Method.invoke(Method.java:511)
02-14 17:09:00.457: E/AndroidRuntime(692): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
02-14 17:09:00.457: E/AndroidRuntime(692): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
02-14 17:09:00.457: E/AndroidRuntime(692): at dalvik.system.NativeStart.main(Native Method)
02-14 17:09:00.457: E/AndroidRuntime(692): Caused by: java.lang.ClassNotFoundException: polito.mailandroid.ui.ui.LoginUI
02-14 17:09:00.457: E/AndroidRuntime(692): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
02-14 17:09:00.457: E/AndroidRuntime(692): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
02-14 17:09:00.457: E/AndroidRuntime(692): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
02-14 17:09:00.457: E/AndroidRuntime(692): at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
02-14 17:09:00.457: E/AndroidRuntime(692): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)
02-14 17:09:00.457: E/AndroidRuntime(692): ... 11 more
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
未找到
polito.mailandroid.ui.ui.LoginUI
和polito.mailandroid.ui.ElementProvider
类。您应该检查 .apk 和您的构建脚本以包含它们。The classes
polito.mailandroid.ui.ui.LoginUI
andpolito.mailandroid.ui.ElementProvider
were not found. You should check the .apk and your build script to include them.它的类未找到异常。
确保您正在使用的类是否存在,并在特定活动的清单中进行输入。
Its class Not found exception.
make sure class you are using is exists or not and do entry in manifest of particular activity.
错误是
您忘记在 AndroidManifest.xml 中声明您的 ContentProvider 吗?
The error is
Have you forgotten to declare your ContentProvider in AndroidManifest.xml?
您遇到未处理的
RuntimeException
。它是由以下原因引起的:java.lang.ClassNotFoundException:polito.mailandroid.ui.ElementProvider因为很可能您没有在清单文件中定义它You are facing a
RuntimeException
that was not handled. It isCaused by: java.lang.ClassNotFoundException: polito.mailandroid.ui.ElementProvider
because most probably you did not define it in the Manifest file您遇到此错误,请注意它
Your are facing this error please see to it
看来你对java很陌生。阅读有关 java 中的 Exception 的内容会有所帮助。暂时查找包含包或文件名称的错误并读取 Caused By 错误。
It seems ur new to java . Read about Exception in java that will help .And for the time being look for error which contains the name of the package or file and read the Caused By error .
即来自 Logcat 的错误
i.e error from the Logcat