"错误获取“安卓图标”属性:属性不是一个字符串值"试图上传到Android Market时, [英] "ERROR getting 'android:icon' attribute: attribute is not a string value" when trying to upload to the 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)包0(错误-75)错误获取 机器人:图标属性不是一个字符串值
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 /绘制文件夹。这是一个96×96巴纽。
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 /值恩
RES /值-ES
res/values-es
这显然是正常工作在Android Market中的previous版本。我觉得我最后一次更新这个应用程序是在一年前。
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 /值
RES /值恩
RES /值-ES
res/values-es
我刚才复制的内容值恩目录到价值观的目录,现在在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.
这篇关于&QUOT;错误获取“安卓图标”属性:属性不是一个字符串值&QUOT;试图上传到Android Market时,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!