0
我正在使用本書學習Android遊戲編程要學習andengine,但我似乎無法達成一致。AndEngine中的崩潰
我使用Eclipse,我已經安裝了SDK和平臺4 8 10和15
我已經下載了第2章從this書籍的網站。
當我運行它,它崩潰,我得到下面的logcat。
請幫助,我一直堅持這一個多星期。
01-27 15:14:31.519: I/System.out(17507): Sending WAIT chunk
01-27 15:14:31.519: W/ActivityThread(17507): Application com.pearson.lagp.v3 is waiting for the debugger on port 8100...
01-27 15:14:32.149: I/dalvikvm(17507): Debugger is active
01-27 15:14:32.319: I/System.out(17507): Debugger has connected
01-27 15:14:32.319: I/System.out(17507): waiting for debugger to settle...
01-27 15:14:32.520: I/System.out(17507): waiting for debugger to settle...
01-27 15:14:32.720: I/System.out(17507): waiting for debugger to settle...
01-27 15:14:32.920: I/System.out(17507): waiting for debugger to settle...
01-27 15:14:33.130: I/System.out(17507): waiting for debugger to settle...
01-27 15:14:33.330: I/System.out(17507): waiting for debugger to settle...
01-27 15:14:33.531: I/System.out(17507): waiting for debugger to settle...
01-27 15:14:33.731: I/System.out(17507): waiting for debugger to settle...
01-27 15:14:33.931: I/System.out(17507): waiting for debugger to settle...
01-27 15:14:34.131: I/System.out(17507): debugger has settled (1324)
01-27 15:14:34.482: D/dalvikvm(17507): threadid=1: still suspended after undo (sc=1 dc=1)
01-27 15:15:12.048: D/AndroidRuntime(17507): Shutting down VM
01-27 15:15:12.048: W/dalvikvm(17507): threadid=1: thread exiting with uncaught exception (group=0x4001e578)
01-27 15:15:12.108: E/AndroidRuntime(17507): FATAL EXCEPTION: main
01-27 15:15:12.108: E/AndroidRuntime(17507): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.pearson.lagp.v3/com.pearson.lagp.v3.StartActivity}: java.lang.ClassNotFoundException: com.pearson.lagp.v3.StartActivity in loader dalvik.system.PathClassLoader[/data/app/com.pearson.lagp.v3-1.apk]
01-27 15:15:12.108: E/AndroidRuntime(17507): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1573)
01-27 15:15:12.108: E/AndroidRuntime(17507): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
01-27 15:15:12.108: E/AndroidRuntime(17507): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
01-27 15:15:12.108: E/AndroidRuntime(17507): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
01-27 15:15:12.108: E/AndroidRuntime(17507): at android.os.Handler.dispatchMessage(Handler.java:99)
01-27 15:15:12.108: E/AndroidRuntime(17507): at android.os.Looper.loop(Looper.java:130)
01-27 15:15:12.108: E/AndroidRuntime(17507): at android.app.ActivityThread.main(ActivityThread.java:3691)
01-27 15:15:12.108: E/AndroidRuntime(17507): at java.lang.reflect.Method.invokeNative(Native Method)
01-27 15:15:12.108: E/AndroidRuntime(17507): at java.lang.reflect.Method.invoke(Method.java:507)
01-27 15:15:12.108: E/AndroidRuntime(17507): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
01-27 15:15:12.108: E/AndroidRuntime(17507): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
01-27 15:15:12.108: E/AndroidRuntime(17507): at dalvik.system.NativeStart.main(Native Method)
01-27 15:15:12.108: E/AndroidRuntime(17507): Caused by: java.lang.ClassNotFoundException: com.pearson.lagp.v3.StartActivity in loader dalvik.system.PathClassLoader[/data/app/com.pearson.lagp.v3-1.apk]
01-27 15:15:12.108: E/AndroidRuntime(17507): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
01-27 15:15:12.108: E/AndroidRuntime(17507): at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
01-27 15:15:12.108: E/AndroidRuntime(17507): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
01-27 15:15:12.108: E/AndroidRuntime(17507): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
01-27 15:15:12.108: E/AndroidRuntime(17507): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1565)
01-27 15:15:12.108: E/AndroidRuntime(17507): ... 11 more
你在你的'AndroidManifest.xml'中聲明瞭'StartActivity'嗎? – 2012-01-27 15:45:19