错误活动类,AndroidManifest.xml,cocos2dx

时间:2014-11-06 18:09:56

标签: android xml eclipse android-manifest cocos2d-x

我试图用cocos2d-x在Eclipse中运行一个android项目。我认为问题出在AndroidManifest.xml中,但我无法看到......

这是我的AndroidManifest.xml:

    <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.MyCompany.MyGame"
      android:versionCode="1"
      android:versionName="1.0">

    <uses-sdk android:minSdkVersion="9"/>
    <uses-feature android:glEsVersion="0x00020000" />

    <application android:label="@string/app_name"
                 android:icon="@drawable/icon">


        <activity android:name="org.cocos2dx.cpp.AppActivity"
                  android:label="@string/app_name"
                  android:screenOrientation="landscape"
                  android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
                  android:configChanges="orientation">

            <!-- Tell NativeActivity the name of our .so -->
            <meta-data android:name="android.app.lib_name"
                       android:value="cocos2dcpp" />

            <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"/>
</manifest> 

那是我的控制台:

[2014-11-06 19:00:18 - ProgettoLAM] ------------------------------
[2014-11-06 19:00:18 - ProgettoLAM] Android Launch!
[2014-11-06 19:00:18 - ProgettoLAM] adb is running normally.
[2014-11-06 19:00:18 - ProgettoLAM] Performing org.cocos2dx.cpp.AppActivity activity launch
[2014-11-06 19:00:20 - ProgettoLAM] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'Maiale'
[2014-11-06 19:00:21 - ProgettoLAM] Application already deployed. No need to reinstall.
[2014-11-06 19:00:22 - ProgettoLAM] Starting activity org.cocos2dx.cpp.AppActivity on device emulator-5554
[2014-11-06 19:00:23 - ProgettoLAM] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.MyCompany.ProgettoLAM/org.cocos2dx.cpp.AppActivity }
[2014-11-06 19:00:23 - ProgettoLAM] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2014-11-06 19:00:26 - ProgettoLAM] Starting activity org.cocos2dx.cpp.AppActivity on device emulator-5554
[2014-11-06 19:00:27 - ProgettoLAM] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2014-11-06 19:00:27 - ProgettoLAM] ActivityManager: Error: Activity class {com.MyCompany.ProgettoLAM/org.cocos2dx.cpp.AppActivity} does not exist.
[2014-11-06 19:00:30 - ProgettoLAM] Starting activity org.cocos2dx.cpp.AppActivity on device emulator-5554
[2014-11-06 19:00:32 - ProgettoLAM] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2014-11-06 19:00:32 - ProgettoLAM] ActivityManager: Error: Activity class {com.MyCompany.ProgettoLAM/org.cocos2dx.cpp.AppActivity} does not exist.
[2014-11-06 19:00:35 - ProgettoLAM] Starting activity org.cocos2dx.cpp.AppActivity on device emulator-5554
[2014-11-06 19:00:36 - ProgettoLAM] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.MyCompany.ProgettoLAM/org.cocos2dx.cpp.AppActivity }
[2014-11-06 19:00:36 - ProgettoLAM] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2014-11-06 19:00:39 - ProgettoLAM] Starting activity org.cocos2dx.cpp.AppActivity on device emulator-5554
[2014-11-06 19:00:42 - ProgettoLAM] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.MyCompany.ProgettoLAM/org.cocos2dx.cpp.AppActivity }
[2014-11-06 19:00:42 - ProgettoLAM] ActivityManager: Error type 3
[2014-11-06 19:00:42 - ProgettoLAM] ActivityManager: Error: Activity class {com.MyCompany.ProgettoLAM/org.cocos2dx.cpp.AppActivity} does not exist.

有人可以帮助我吗?

谢谢!

0 个答案:

没有答案