我已经建立了一个与RSS Feed相关的名为EverestNewsApp的android应用程序,以显示当前新闻和头条新闻,但是毕竟我收到了该错误,但该应用程序已停止。您能否看一下以下日志猫的错误,并通知我根本做错了什么...预先感谢
08-06 19:41:35.395: D/AndroidRuntime(23995): Shutting down VM
08-06 19:41:35.430: W/dalvikvm(23995): threadid=1: thread exiting with uncaught exception (group=0x41a692a0)
08-06 19:41:35.430: E/AndroidRuntime(23995): FATAL EXCEPTION: main
08-06 19:41:35.430: E/AndroidRuntime(23995): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.wfwf.everestnewsapp/com.wfwf.everestnewsapp.SplashActivity}: java.lang.ClassNotFoundException: com.wfwf.everestnewsapp.SplashActivity
08-06 19:41:35.430: E/AndroidRuntime(23995): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2024)
08-06 19:41:35.430: E/AndroidRuntime(23995): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2125)
08-06 19:41:35.430: E/AndroidRuntime(23995): at android.app.ActivityThread.access$600(ActivityThread.java:140)
08-06 19:41:35.430: E/AndroidRuntime(23995): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1227)
08-06 19:41:35.430: E/AndroidRuntime(23995): at android.os.Handler.dispatchMessage(Handler.java:99)
08-06 19:41:35.430: E/AndroidRuntime(23995): at android.os.Looper.loop(Looper.java:137)
08-06 19:41:35.430: E/AndroidRuntime(23995): at android.app.ActivityThread.main(ActivityThread.java:4898)
08-06 19:41:35.430: E/AndroidRuntime(23995): at java.lang.reflect.Method.invokeNative(Native Method)
08-06 19:41:35.430: E/AndroidRuntime(23995): at java.lang.reflect.Method.invoke(Method.java:511)
08-06 19:41:35.430: E/AndroidRuntime(23995): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
08-06 19:41:35.430: E/AndroidRuntime(23995): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
08-06 19:41:35.430: E/AndroidRuntime(23995): at dalvik.system.NativeStart.main(Native Method)
08-06 19:41:35.430: E/AndroidRuntime(23995): Caused by: java.lang.ClassNotFoundException: com.wfwf.everestnewsapp.SplashActivity
08-06 19:41:35.430: E/AndroidRuntime(23995): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
08-06 19:41:35.430: E/AndroidRuntime(23995): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
08-06 19:41:35.430: E/AndroidRuntime(23995): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
08-06 19:41:35.430: E/AndroidRuntime(23995): at android.app.Instrumentation.newActivity(Instrumentation.java:1057)
08-06 19:41:35.430: E/AndroidRuntime(23995): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2015)
08-06 19:41:35.430: E/AndroidRuntime(23995): ... 11 more
08-06 19:41:35.465: I/Process(23995): Sending signal. PID: 23995 SIG: 9
最佳答案
java.lang.ClassNotFoundException:com.wfwf.everestnewsapp.SplashActivity:
该错误基本上显示在
编译器无法实例化您的SplashActivity.java
确保已在AndroidManifest.xml中定义了SplashActivity类