大家好,我在Eclipse中运行自带例子CppTests,报错误如下,望各大神给点建议,谢谢。
07-23 05:57:54.774: E/AndroidRuntime(1980): FATAL EXCEPTION: main
07-23 05:57:54.774: E/AndroidRuntime(1980): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{org.cocos2dx.cpp_tests/org.cocos2dx.cpp_tests.AppActivity}: java.lang.ClassNotFoundException: Didn’t find class “org.cocos2dx.cpp_tests.AppActivity” on path: DexPathList,nativeLibraryDirectories=]
07-23 05:57:54.774: E/AndroidRuntime(1980): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2137)
根据提示,我在eclipse的File Explorer中,可以看到data/app/org.cocos2dx.cpp_test-1.apk
我的AndroidManifest.xml中配置如下,
<?xml version="1.0" encoding="utf-8"?><uses-sdk android:minSdkVersion="9"/>
<uses-feature android:glEsVersion="0x00020000" />
<application android:label="@string/app_name"
android:icon="@drawable/icon">
<activity android:name=".AppActivity"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:configChanges="orientation">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<supports-screens android:anyDensity="true"
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"/>
<uses-permission android:name="android.permission.INTERNET"/>