當我嘗試在自己的android應用程序中集成andengine.jar和e3roid.jar時,我總是面臨此錯誤。 請幫助我。無法實例化活動ComponentInfo
04-12 15:53:13.667: E/AndroidRuntime(1263): FATAL EXCEPTION: main
04-12 15:53:13.667: E/AndroidRuntime(1263): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.e3roid.examples/com.e3roid.examples.SplashScreenActivity}: java.lang.ClassNotFoundException: com.e3roid.examples.SplashScreenActivity in loader dalvik.system.PathClassLoader[/data/app/com.e3roid.examples-1.apk]
04-12 15:53:13.667: E/AndroidRuntime(1263): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1660)
04-12 15:53:13.667: E/AndroidRuntime(1263): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1752)
04-12 15:53:13.667: E/AndroidRuntime(1263): at android.app.ActivityThread.access$1500(ActivityThread.java:123)
04-12 15:53:13.667: E/AndroidRuntime(1263): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:993)
04-12 15:53:13.667: E/AndroidRuntime(1263): at android.os.Handler.dispatchMessage(Handler.java:99)
04-12 15:53:13.667: E/AndroidRuntime(1263): at android.os.Looper.loop(Looper.java:126)
04-12 15:53:13.667: E/AndroidRuntime(1263): at android.app.ActivityThread.main(ActivityThread.java:3997)
04-12 15:53:13.667: E/AndroidRuntime(1263): at java.lang.reflect.Method.invokeNative(Native Method)
04-12 15:53:13.667: E/AndroidRuntime(1263): at java.lang.reflect.Method.invoke(Method.java:491)
04-12 15:53:13.667: E/AndroidRuntime(1263): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
04-12 15:53:13.667: E/AndroidRuntime(1263): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
04-12 15:53:13.667: E/AndroidRuntime(1263): at dalvik.system.NativeStart.main(Native Method)
04-12 15:53:13.667: E/AndroidRuntime(1263): Caused by: java.lang.ClassNotFoundException: com.e3roid.examples.SplashScreenActivity in loader dalvik.system.PathClassLoader[/data/app/com.e3roid.examples-1.apk]
04-12 15:53:13.667: E/AndroidRuntime(1263): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:251)
04-12 15:53:13.667: E/AndroidRuntime(1263): at java.lang.ClassLoader.loadClass(ClassLoader.java:548)
04-12 15:53:13.667: E/AndroidRuntime(1263): at java.lang.ClassLoader.loadClass(ClassLoader.java:508)
04-12 15:53:13.667: E/AndroidRuntime(1263): at android.app.Instrumentation.newActivity(Instrumentation.java:1022)
04-12 15:53:13.667: E/AndroidRuntime(1263): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651)
04-12 15:53:13.667: E/AndroidRuntime(1263): ... 11 more
添加一些代碼太... – ngesh 2012-04-12 10:35:56
你有沒有宣佈清單文件中的活動? – 2012-04-12 10:36:37
顯示您的清單 – vnshetty 2012-04-12 10:47:50