1

我在 cocos2d-x (jni, in c++) 中做了一周的应用程序

现在的问题是我无法运行它,无法在我的设备上测试它..

我收到此错误:

[2013-05-25 21:09:07 - PaperAgeAndroid] ------------------------------
[2013-05-25 21:09:07 - PaperAgeAndroid] Android Launch!
[2013-05-25 21:09:07 - PaperAgeAndroid] adb is running normally.
[2013-05-25 21:09:07 - PaperAgeAndroid] Performing es.rks.paperage.PaperAgeAndroid     activity launch
[2013-05-25 21:09:07 - PaperAgeAndroid] Uploading PaperAgeAndroid.apk onto device '0123456789ABCDEF'
[2013-05-25 21:09:44 - PaperAgeAndroid] Installing PaperAgeAndroid.apk...
[2013-05-25 21:09:48 - PaperAgeAndroid] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
[2013-05-25 21:09:48 - PaperAgeAndroid] Please check logcat output for more details.
[2013-05-25 21:09:48 - PaperAgeAndroid] Launch failed on device: 0123456789ABCDEF
[2013-05-25 21:09:48 - PaperAgeAndroid] Starting activity es.rks.paperage.PaperAgeAndroid on device 0123456789ABCDEF
[2013-05-25 21:09:49 - PaperAgeAndroid] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=es.rks.paperage/.PaperAgeAndroid }
[2013-05-25 21:09:49 - PaperAgeAndroid] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2013-05-25 21:09:52 - PaperAgeAndroid] Starting activity es.rks.paperage.PaperAgeAndroid on device 0123456789ABCDEF
[2013-05-25 21:09:52 - PaperAgeAndroid] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2013-05-25 21:09:55 - PaperAgeAndroid] Starting activity es.rks.paperage.PaperAgeAndroid on device 0123456789ABCDEF
[2013-05-25 21:09:56 - PaperAgeAndroid] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2013-05-25 21:09:59 - PaperAgeAndroid] Starting activity es.rks.paperage.PaperAgeAndroid on device 0123456789ABCDEF
[2013-05-25 21:09:59 - PaperAgeAndroid] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=es.rks.paperage/.PaperAgeAndroid }
[2013-05-25 21:09:59 - PaperAgeAndroid] New package not yet registered with the system. Waiting 3 seconds before next attempt.
[2013-05-25 21:10:02 - PaperAgeAndroid] Starting activity es.rks.paperage.PaperAgeAndroid on device 0123456789ABCDEF
[2013-05-25 21:10:02 - PaperAgeAndroid] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=es.rks.paperage/.PaperAgeAndroid }
[2013-05-25 21:10:02 - PaperAgeAndroid] ActivityManager: Error type 3
[2013-05-25 21:10:02 - PaperAgeAndroid] ActivityManager: Error: Activity class {es.rks.paperage/es.rks.paperage.PaperAgeAndroid} does not exist.

我之前遇到过这个错误,但是从我的设备中删除应用程序修复了这个问题:S 现在我无法运行应用程序

是的,我已尝试清理项目并运行它,但我仍然遇到同样的问题

我的 Android 清单是:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="es.rks.paperage"
      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="PaperAgeAndroid"
                  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> 

我在 mac 上使用 Eclipse Juno

这是项目结构

项目结构

4

4 回答 4

1

我正在开发一个 Android 应用程序并面临同样的问题。我也使用 Eclipse。我的问题是有人从我们的测试手机上禁用了该应用程序,因为它仍然存在错误,所以我不得不去设置->应用程序->我的应用程序->启用。那为我修好了。

于 2013-06-26T08:53:30.973 回答
0

错误信息是INSTALL_FAILED_INSUFFICIENT_STORAGE,所以你可以尝试添加

android:installLocation="preferExternal"

到你的清单。

于 2013-05-25T19:39:15.343 回答
0

在 Manifest.xml 中

<application android:icon="@drawable/icon"
    android:label="@string/app_name"
    android:name=".App" android:enabled="false">

//.....

更改 android:enable="true" 的值将起作用

于 2017-06-03T17:42:47.637 回答
-1

android:hasCode="false" android:enabled="false"

我从清单中删除此代码。

我的项目被修改了

于 2016-03-17T09:02:23.153 回答