2013-08-06 85 views
0

我已經構建了一個名爲EverestNewsApp的RSS應用程序相關的Android應用程序,以顯示當前的新聞和標題,但畢竟我得到了錯誤的應用程序不幸停止。能否請您對以下日誌貓錯誤看看,通知我我做了什麼錯誤,在所有...在此先感謝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 
+0

'拋出java.lang.ClassNotFoundException:com.wfwf.everestnewsapp.SplashActivity' - 你需要確保'COM .wfwf.everestnewsapp.SplashActivity'包含在你的安裝包中 –

+0

http://stackoverflow.com/questions/10866431/android-activity-classnotfoundexception-tried-everything – Rohit

+0

你能不能請顯示mainfest文件 – LMK

回答

1

拋出java.lang.ClassNotFoundException:com.wfwf.everestnewsapp.SplashActivity: 這基本錯誤時顯示 編譯器是無法實例化SplashActivity.java

確保您在AndroidManifest.xml中定義了SplashActivity類

+0

謝謝我明白了...... –

1

您的Android清單需要看起來像這樣

<application 
     android:allowBackup="true" 
     android:icon="@drawable/ic_launcher" 
     android:label="@string/app_name" 
     android:theme="@style/AppTheme"> 
    .... 

    .... 
    <activity 
      android:name="com.wfwf.everestnewsapp.SplashActivity" 
      android:label="@string/app_name"> 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN"/> 

      <category android:name="android.intent.category.LAUNCHER"/> 
     </intent-filter> 
    </activity> 
</application> 

確保條目是在您的清單,否則你會被給予ClassNotFound的異常

+0

@latif mohamad Khan我的主要文件是 –

相關問題