如何识别logcat中的错误

发布于 2025-01-05 15:24:12 字数 7982 浏览 0 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

胡大本事 2025-01-12 15:24:12

未找到 polito.mailandroid.ui.ui.LoginUIpolito.mailandroid.ui.ElementProvider 类。您应该检查 .apk 和您的构建脚本以包含它们。

The classes polito.mailandroid.ui.ui.LoginUI and polito.mailandroid.ui.ElementProvider were not found. You should check the .apk and your build script to include them.

つ低調成傷 2025-01-12 15:24:12

它的类未找到异常。

确保您正在使用的类是否存在,并在特定活动的清单中进行输入。

Its class Not found exception.

make sure class you are using is exists or not and do entry in manifest of particular activity.

╰◇生如夏花灿烂 2025-01-12 15:24:12

错误是

02-14 17:00:46.727: E/AndroidRuntime(644): Caused by: java.lang.ClassNotFoundException: polito.mailandroid.ui.ElementProvider

您忘记在 AndroidManifest.xml 中声明您的 ContentProvider 吗?

The error is

02-14 17:00:46.727: E/AndroidRuntime(644): Caused by: java.lang.ClassNotFoundException: polito.mailandroid.ui.ElementProvider

Have you forgotten to declare your ContentProvider in AndroidManifest.xml?

故笙诉离歌 2025-01-12 15:24:12

您遇到未处理的 RuntimeException。它是由以下原因引起的:java.lang.ClassNotFoundException:polito.mailandroid.ui.ElementProvider因为很可能您没有在清单文件中定义它

You are facing a RuntimeException that was not handled. It is Caused by: java.lang.ClassNotFoundException: polito.mailandroid.ui.ElementProvider because most probably you did not define it in the Manifest file

木緿 2025-01-12 15:24:12

您遇到此错误,请注意它

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

Your are facing this error please see to it

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
喵星人汪星人 2025-01-12 15:24:12

看来你对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 .

韵柒 2025-01-12 15:24:12

即来自 Logcat 的错误

由以下原因引起:java.lang.ClassNotFoundException:polito.mailandroid.ui.ElementProvider
02-14 16:45:46.487:E / AndroidRuntime(562):在dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)

i.e error from the Logcat

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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文