无法在Google Play上更新APK

时间:2014-08-14 05:52:47

标签: android

尝试将我的APK上传到Google Play时出现此错误:

Your APK cannot be analyzed using 'aapt dump badging'. Error output:
Failed to run aapt dump badging:
W/ResourceType( 4731): Failure getting entry for 0x7f0b0002 (t=10 e=2) (error -75)
ERROR getting 'android:icon' attribute: attribute is not a string value

我阅读了this和Google支持页面,但它似乎有所不同,因为我的android:icon代替android:value

重要的是我得到了这个更新,所以感谢任何帮助。

作为参考,由于我的应用程序是开源的,我也发布了我的完整清单文件:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.andrewq.planets" >

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="com.android.vending.BILLING" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme"
        android:value="true">

        <!-- Main Activity -->
        <activity
            android:name=".MainActivity"
            android:label="@string/app_name"
            android:screenOrientation="sensor"
            android:theme="@style/Roboto" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <action android:name="android.intent.action.SEARCH" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <!-- Settings Activity -->
        <activity
            android:name=".Settings"
            android:label="@string/action_settings"
            android:parentActivityName=".Settings"
            android:screenOrientation="sensor"
            android:theme="@style/Roboto" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGalleryActivity" />

            <intent-filter>
                <action android:name="android.intent.action.ImageGallery" />

                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

        <!-- Earth Moon Activity -->
        <activity
            android:name=".SatelliteEarth"
            android:label="Moon"
            android:parentActivityName=".SatelliteEarth"
            android:screenOrientation="sensor"
            android:theme="@style/Theme.TranslucentActionBar.ActionBar.Overlay" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGalleryActivity" />

            <intent-filter>
                <action android:name="android.intent.action.ImageGallery" />
                <action android:name="android.intent.action.SEARCH" />

                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

        <!-- Phobos Activity -->
        <activity
            android:name=".Phobos"
            android:label="Phobos"
            android:parentActivityName=".Phobos"
            android:screenOrientation="sensor"
            android:theme="@style/Theme.TranslucentActionBar.ActionBar.Overlay" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGalleryActivity" />

            <intent-filter>
                <action android:name="android.intent.action.ImageGallery" />
                <action android:name="android.intent.action.SEARCH" />

                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

        <activity
            android:name=".PhobosImageView"
            android:label="Phobos"
            android:parentActivityName=".MarsActivity" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.MarsActivity" />
        </activity>

        <!-- Deimos Activity -->
        <activity
            android:name=".Deimos"
            android:label="Deimos"
            android:parentActivityName=".Deimos"
            android:screenOrientation="sensor"
            android:theme="@style/Theme.TranslucentActionBar.ActionBar.Overlay" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGalleryActivity" />

            <intent-filter>
                <action android:name="android.intent.action.ImageGallery" />

                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

        <activity
            android:name=".DeimosImageView"
            android:label="Phobos"
            android:parentActivityName=".MarsActivity" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.MarsActivity" />
        </activity>

        <!-- Moon Activity -->
        <activity
            android:name=".MoonImageView"
            android:label="Moon"
            android:parentActivityName=".MainActivity" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.EarthActivity" />
        </activity>

        <!-- Sun Image View -->
        <activity
            android:name=".SunImageView"
            android:label="Sun"
            android:parentActivityName=".MainActivity" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGallery" />
        </activity>

        <!-- Sun Activity -->
        <activity
            android:name=".SunActivity"
            android:label="Sun"
            android:parentActivityName=".MainActivity"
            android:theme="@style/Theme.TranslucentActionBar.ActionBar.Overlay" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGallery" />
        </activity>

        <!-- Mercury Image View -->
        <activity
            android:name=".MercuryImageView"
            android:label="Mercury"
            android:parentActivityName=".MainActivity" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGallery" />
        </activity>

        <!-- Mercury Activity -->
        <activity
            android:name=".MercuryActivity"
            android:label="Mercury"
            android:parentActivityName=".MainActivity"
            android:theme="@style/Theme.TranslucentActionBar.ActionBar.Overlay" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGallery" />
        </activity>

        <!-- Venus Image View -->
        <activity
            android:name=".VenusImageView"
            android:label="Venus"
            android:parentActivityName=".MainActivity" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGallery" />
        </activity>

        <!-- Venus Activity -->
        <activity
            android:name=".VenusActivity"
            android:label="Venus"
            android:parentActivityName=".MainActivity"
            android:theme="@style/Theme.TranslucentActionBar.ActionBar.Overlay" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGallery" />
        </activity>

        <!-- Earth Image View -->
        <activity
            android:name=".EarthImageView"
            android:label="Earth"
            android:parentActivityName=".MainActivity" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGallery" />
        </activity>

        <!-- Earth Image View -->
        <activity
            android:name=".EarthActivity"
            android:label="Earth"
            android:parentActivityName=".MainActivity"
            android:theme="@style/Theme.TranslucentActionBar.ActionBar.Overlay" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGallery" />
        </activity>

        <!-- Mars Image View -->
        <activity
            android:name=".MarsImageView"
            android:label="Mars"
            android:parentActivityName=".MainActivity" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGallery" />
        </activity>

        <activity
            android:name=".MarsActivity"
            android:label="Mars"
            android:parentActivityName=".MainActivity"
            android:theme="@style/Theme.TranslucentActionBar.ActionBar.Overlay" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGallery" />
        </activity>

        <!-- Jupiter Image View -->
        <activity
            android:name=".JupiterActivity"
            android:label="Jupiter"
            android:theme="@style/Theme.TranslucentActionBar.ActionBar.Overlay"
            android:parentActivityName=".MainActivity" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGallery" />
        </activity>

        <activity
            android:name=".JupiterImageView"
            android:label="Jupiter"
            android:parentActivityName=".MainActivity" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGallery" />
        </activity>

        <!-- Saturn Image View -->
        <activity
            android:name=".SaturnActivity"
            android:label="Saturn"
            android:theme="@style/Theme.TranslucentActionBar.ActionBar.Overlay"
            android:parentActivityName=".MainActivity" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGallery" />
        </activity>

        <activity
            android:name=".SaturnImageView"
            android:label="Saturn"
            android:parentActivityName=".MainActivity" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGallery" />
        </activity>

        <!-- Uranus Image View -->
        <activity
            android:name=".UranusActivity"
            android:label="Uranus"
            android:theme="@style/Theme.TranslucentActionBar.ActionBar.Overlay"
            android:parentActivityName=".MainActivity" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGallery" />
        </activity>

        <activity
            android:name=".UranusImageView"
            android:label="Uranus"
            android:parentActivityName=".MainActivity" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGallery" />
        </activity>

        <!-- Neptune Image View -->
        <activity
            android:name=".NeptuneActivity"
            android:label="Neptune"
            android:theme="@style/Theme.TranslucentActionBar.ActionBar.Overlay"
            android:parentActivityName=".MainActivity" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGallery" />
        </activity>

        <activity
            android:name=".NeptuneImageView"
            android:label="Neptune"
            android:parentActivityName=".MainActivity" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGallery" />
        </activity>

        <!-- Pluto Image View -->
        <activity
            android:name=".PlutoActivity"
            android:label="Pluto"
            android:theme="@style/Theme.TranslucentActionBar.ActionBar.Overlay"
            android:parentActivityName=".MainActivity" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGallery" />
        </activity>

        <activity
            android:name=".PlutoImageView"
            android:label="Pluto"
            android:parentActivityName=".MainActivity" >
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.andrewq.planets.ImageGallery" />
        </activity>
    </application>
</manifest>

2 个答案:

答案 0 :(得分:1)

android:value文件中的<application>配置单元没有Manifest参数, 看看你可以指定什么作为参数:

http://developer.android.com/guide/topics/manifest/application-element.html

答案 1 :(得分:0)

感谢您的帮助Emil。我能够找出问题所在。我搜索了错误给我的内存地址。它把我带到了我的app_name字符串。问题是,我已将我的英文字符串文件移动到values-en并为values-ru创建了一个新文件,但默认文件夹为空。