2012-08-16 172 views
0

我有我的Android SDK更新到芯片(4.1),因爲我更新這是在升級Froyo(2.3)developped我以前所有的項目給我的錯誤,如ICS類未發現異常

08-16 19:16:32.284: E/AndroidRuntime(593): FATAL EXCEPTION: main 
08-16 19:16:32.284: E/AndroidRuntime(593): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.abc.def/com.abc.def.defMain}: java.lang.ClassNotFoundException: com.abc.def.defMain in loader dalvik.system.PathClassLoader[/data/app/com.abc.def-1.apk] 
08-16 19:16:32.284: E/AndroidRuntime(593): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585) 
08-16 19:16:32.284: E/AndroidRuntime(593): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) 
08-16 19:16:32.284: E/AndroidRuntime(593): at android.app.ActivityThread.access$2300(ActivityThread.java:125) 
08-16 19:16:32.284: E/AndroidRuntime(593): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) 
08-16 19:16:32.284: E/AndroidRuntime(593): at android.os.Handler.dispatchMessage(Handler.java:99) 
08-16 19:16:32.284: E/AndroidRuntime(593): at android.os.Looper.loop(Looper.java:123) 
08-16 19:16:32.284: E/AndroidRuntime(593): at android.app.ActivityThread.main(ActivityThread.java:4627) 
08-16 19:16:32.284: E/AndroidRuntime(593): at java.lang.reflect.Method.invokeNative(Native Method) 
08-16 19:16:32.284: E/AndroidRuntime(593): at java.lang.reflect.Method.invoke(Method.java:521) 
08-16 19:16:32.284: E/AndroidRuntime(593): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 
08-16 19:16:32.284: E/AndroidRuntime(593): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 
08-16 19:16:32.284: E/AndroidRuntime(593): at dalvik.system.NativeStart.main(Native Method) 
08-16 19:16:32.284: E/AndroidRuntime(593): Caused by: java.lang.ClassNotFoundException: com.abc.def.defMain in loader dalvik.system.PathClassLoader[/data/app/com.abc.def-1.apk] 
08-16 19:16:32.284: E/AndroidRuntime(593): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243) 
08-16 19:16:32.284: E/AndroidRuntime(593): at java.lang.ClassLoader.loadClass(ClassLoader.java:573) 
08-16 19:16:32.284: E/AndroidRuntime(593): at java.lang.ClassLoader.loadClass(ClassLoader.java:532) 
08-16 19:16:32.284: E/AndroidRuntime(593): at android.app.Instrumentation.newActivity(Instrumentation.java:1021) 
08-16 19:16:32.284: E/AndroidRuntime(593): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577) 
08-16 19:16:32.284: E/AndroidRuntime(593): ... 11 more 

更新SDK所有的前這些都運行非常沒有任何錯誤,請幫助

+0

在您的源項目com.abc.def.defMain – 2012-08-16 14:01:21

+0

中找不到此類,但這是一個正在運行的項目 – vipin 2012-08-16 14:03:27

+0

嘗試在'AndroidManifest.xml'中指定'' – 2012-08-16 14:07:59

回答

0

我得到了解決這個異常這個問題發生,因爲我在我的項目中使用外部庫,並在構建路徑中reering他們,但在圖書館應該包含在libs目錄項目,所以我複製庫中的庫問題得到解決