Cocos2dx ライブラリを使用して Eclipse IDE をセットアップします。cocos2dx ライブラリで helloworld プロジェクトをセットアップして実行しようとしていますが、helloworld.apk がエミュレータに正常にアップロードされた後、LogCat でこのエラーが発生します。
SDK 17 Eclipse ビルドを使用しています: v22.0.1-685705
私はstackoverflowでほぼ4〜5件の同様の投稿を見てきましたが、すべてを試しましたが、これを修正する方法がわかりません.
LogCat エントリは次のとおりです。
06-26 06:30:27.411: E/AndroidRuntime(781): FATAL EXCEPTION: main
06-26 06:30:27.411: E/AndroidRuntime(781): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.game.demo/com.game.demo.helloworld}: java.lang.ClassNotFoundException: Didn't find class "com.game.demo.helloworld" on path: /data/app/com.game.demo-2.apk
06-26 06:30:27.411: E/AndroidRuntime(781): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106)
06-26 06:30:27.411: E/AndroidRuntime(781): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
06-26 06:30:27.411: E/AndroidRuntime(781): at android.app.ActivityThread.access$600(ActivityThread.java:141)
06-26 06:30:27.411: E/AndroidRuntime(781): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
06-26 06:30:27.411: E/AndroidRuntime(781): at android.os.Handler.dispatchMessage(Handler.java:99)
06-26 06:30:27.411: E/AndroidRuntime(781): at android.os.Looper.loop(Looper.java:137)
06-26 06:30:27.411: E/AndroidRuntime(781): at android.app.ActivityThread.main(ActivityThread.java:5041)
06-26 06:30:27.411: E/AndroidRuntime(781): at java.lang.reflect.Method.invokeNative(Native Method)
06-26 06:30:27.411: E/AndroidRuntime(781): at java.lang.reflect.Method.invoke(Method.java:511)
06-26 06:30:27.411: E/AndroidRuntime(781): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
06-26 06:30:27.411: E/AndroidRuntime(781): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
06-26 06:30:27.411: E/AndroidRuntime(781): at dalvik.system.NativeStart.main(Native Method)
06-26 06:30:27.411: E/AndroidRuntime(781): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.game.demo.helloworld" on path: /data/app/com.game.demo-2.apk
06-26 06:30:27.411: E/AndroidRuntime(781): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
06-26 06:30:27.411: E/AndroidRuntime(781): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
06-26 06:30:27.411: E/AndroidRuntime(781): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
06-26 06:30:27.411: E/AndroidRuntime(781): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
06-26 06:30:27.411: E/AndroidRuntime(781): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
06-26 06:30:27.411: E/AndroidRuntime(781): ... 11 more
06-26 06:30:27.411: E/AndroidRuntime(781): FATAL EXCEPTION: main
06-26 06:30:27.411: E/AndroidRuntime(781): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.game.demo/com.game.demo.helloworld}: java.lang.ClassNotFoundException: Didn't find class "com.game.demo.helloworld" on path: /data/app/com.game.demo-2.apk
06-26 06:30:27.411: E/AndroidRuntime(781): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106)
06-26 06:30:27.411: E/AndroidRuntime(781): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
06-26 06:30:27.411: E/AndroidRuntime(781): at android.app.ActivityThread.access$600(ActivityThread.java:141)
06-26 06:30:27.411: E/AndroidRuntime(781): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
06-26 06:30:27.411: E/AndroidRuntime(781): at android.os.Handler.dispatchMessage(Handler.java:99)
06-26 06:30:27.411: E/AndroidRuntime(781): at android.os.Looper.loop(Looper.java:137)
06-26 06:30:27.411: E/AndroidRuntime(781): at android.app.ActivityThread.main(ActivityThread.java:5041)
06-26 06:30:27.411: E/AndroidRuntime(781): at java.lang.reflect.Method.invokeNative(Native Method)
06-26 06:30:27.411: E/AndroidRuntime(781): at java.lang.reflect.Method.invoke(Method.java:511)
06-26 06:30:27.411: E/AndroidRuntime(781): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
06-26 06:30:27.411: E/AndroidRuntime(781): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
06-26 06:30:27.411: E/AndroidRuntime(781): at dalvik.system.NativeStart.main(Native Method)
06-26 06:30:27.411: E/AndroidRuntime(781): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.game.demo.helloworld" on path: /data/app/com.game.demo-2.apk
06-26 06:30:27.411: E/AndroidRuntime(781): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
06-26 06:30:27.411: E/AndroidRuntime(781): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
06-26 06:30:27.411: E/AndroidRuntime(781): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
06-26 06:30:27.411: E/AndroidRuntime(781): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
06-26 06:30:27.411: E/AndroidRuntime(781): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
06-26 06:30:27.411: E/AndroidRuntime(781): ... 11 more
ここに私の AndroidManifest.xml ファイルがあります:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.game.demo"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8"/>
<uses-feature android:glEsVersion="0x00020000" />
<application android:label="@string/app_name"
android:icon="@drawable/icon">
<activity android:name=".helloworld"
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:largeScreens="true"
android:smallScreens="true"
android:anyDensity="true"
android:normalScreens="true"/>
</manifest>