“获取 'android:icon' 属性时出错:属性不是字符串值"尝试上传到 Android Market 时 [英] "ERROR getting 'android:icon' attribute: attribute is not a string value" when trying to upload to the Android Market

查看:33
本文介绍了“获取 'android:icon' 属性时出错:属性不是字符串值"尝试上传到 Android Market 时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里没有类似的问题,但谷歌搜索其他一些人也遇到了同样的问题.推荐的修复方法均无效.

There's not a similar question here, but Googling around some other people have had the same issue. None of the recommended fixes are working.

完整的错误是:

文件无效:W/ResourceType(32055):获取条目失败0x7f050001 (t=4 e=1) in package 0 (error -75) ERROR getting'android:icon' 属性不是字符串值

The file is invalid: W/ResourceType(32055): Failure getting entry for 0x7f050001 (t=4 e=1) in package 0 (error -75) ERROR getting 'android:icon' attribute is not a string value

这是我的清单:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.dominoes"
      android:versionCode="10"
      android:versionName="2.00">
    <application android:icon="@drawable/myicon" android:label="@string/app_name">
        <activity android:name=".Dominoes"
                  android:screenOrientation="landscape"
                  android:configChanges="orientation|keyboardHidden" 
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
        <uses-sdk android:minSdkVersion="3" 
            android:targetSdkVersion="4" />
            <supports-screens
          android:largeScreens="true"
          android:normalScreens="true"
          android:smallScreens="true"
          android:anyDensity="false" />  
</manifest> 

图像myicon.png"位于 res/drawable 文件夹中.这是一个 96x96 的 .png.

The image, "myicon.png", is located in the res/drawable folder. It's a 96x96 .png.

推荐答案

好吧,在搞砸了这个愚蠢的错误几个小时之后,我自己找到了答案.这是我为数不多的已本地化为西班牙语的应用程序之一,因此我的 res 目录具有以下内容:

Well, after screwing with this stupid bug for a couple of hours, I found the answer on my own. This is one of my few apps that is localized into Spanish, so my res directory had the following:

res/values-zh

res/values-en

res/values-es

res/values-es

这显然在以前版本的 Android 电子市场中运行良好.我想我最后一次更新这个应用程序是一年多以前了.

This apparently worked fine in previous versions of the Android Market. I think the last time I updated this app was over a year ago.

不管怎样,结果我只需要一个简单的值目录:

Anyway, turns out I needed just a plain values directory:

分辨率/值

res/values-zh

res/values-en

res/values-es

res/values-es

我刚刚将 values-en 目录的内容复制到 values 目录中,现在 Android Market 很高兴,让我上传我的 .apk.我在遇到的任何研究中都没有看到这个特定的答案,所以希望这对某人有所帮助.

I just copied the contents of the values-en directory into the values directory and now the Android Market is happy and let me upload my .apk. I hadn't seen this particular answer in any of the research I came across, so hopefully this helps someone.

这篇关于“获取 'android:icon' 属性时出错:属性不是字符串值"尝试上传到 Android Market 时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆