我正在学习如何从this tutorial制作Android游戏,但我的应用程序无法运行。我正在三星Galaxy S2上调试它(不是在模拟器上)
这是我的logcat:
java.lang.RuntimeException:无法实例化活动ComponentInfo {com.example.demoandengine / com.example.demoandengine.MainActivity}:java.lang.ClassNotFoundException:com.example.demoandengine.MainActivity
从控制台:
[2014-03-08 23:12:11 - DemoAndengine] Starting activity com.example.demoandengine.MainActivity on device 1748080c
[2014-03-08 23:12:12 - DemoAndengine] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[ xxx ] cmp=xxxx }
[2014-03-08 23:12:56 - DemoAndengine] ------------------------------
[2014-03-08 23:12:56 - DemoAndengine] Android Launch!
[2014-03-08 23:12:56 - DemoAndengine] adb is running normally.
[2014-03-08 23:12:56 - DemoAndengine] Performing com.example.demoandengine.MainActivity activity launch
[2014-03-08 23:12:56 - DemoAndengine] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2014-03-08 23:12:59 - DemoAndengine] Application already deployed. No need to reinstall.
[2014-03-08 23:12:59 - AndEngine] **Could not find AndEngine.apk!**
[2014-03-08 23:12:59 - DemoAndengine] Starting activity com.example.demoandengine.MainActivity on device 1748080c
[2014-03-08 23:13:00 - DemoAndengine] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[ xxx ] cmp=xxxx }
我认为我的AndEngine
lib存在问题,或者我导入了错误的AndEngine
。