无法将 apk 上传到 google play
我在尝试上传已发布应用的最新版本时收到以下错误报告:
I just got the following error report when attempting to upload my lastest version of an already published app:
Upload failed
Your APK cannot be analysed using 'aapt dump badging'. Error output:
Failed to run aapt dump badging:
W/ResourceType(12572): Failure getting entry for 0x7f020095 (t=1 e=149) in package 0 (error -75)
W/ResourceType(12572): Failure getting entry for 0x7f020095 (t=1 e=149) in package 0 (error -75)
W/ResourceType(12572): Failure getting entry for 0x7f020095 (t=1 e=149) in package 0 (error -75)
ERROR getting 'android:icon' attribute: attribute is not a string value
即使你不知道完整的解释,我仍然对任何可能的线索感兴趣.例如,什么是资源类型 12572?什么是转储徽章"?无法进入意味着什么?
Even if you don't know the full explanation, I'm still interested in any possible clues. For example what is a resourcetype 12572? and what is "dump badging"? and what could a failure to get entry mean?
为了回答一些评论......
In answer to some comments...
我确实在这个最新版本中更改了图标文件的名称(这可能是一个线索).清单现在包含(在大量其他内容中......):
I did change the name of the icon file in this most recent version (this could be a clue). The manifest now contains (amongst a ton of other stuff...):
<application
android:icon="@drawable/mygameapp_icon"
android:screenOrientation="portrait"
我的应用中还有英文和韩文文本.这是通过在名为 res/values 的目录中名为 strings.xml 的文件中的英文字符串和名为 res/values-ko 的目录中名为 strings.xml 的文件中的一组韩文字符串进行安排
I also have the text in my app in english and Korean. This is arranged by having the english strings in a file called strings.xml in a directory called res/values and a set of Korean strings in a file called strings.xml in a directory called res/values-ko
回答我自己的问题...
Answering my own question...
我刚刚注意到我在 drawable-xlarge、drawable-large、drawable-normal、drawable-small 中有不同大小的 mygameapp_icon.png 文件,但在普通的drawable"中没有.在 drawable 中放置一个新图标使我的问题消失了.
I just noticed that I have different sized mygameapp_icon.png files in drawable-xlarge, drawable-large, drawable-normal, drawable-small, but not in plain old "drawable". Putting a new icon in drawable made my problem disappear.
虽然现在我很困惑,什么时候可以使用纯drawable"中的图标?如果它的尺寸完全不适合该设备怎么办?...或者我应该写一些与 android:icon="@drawable/mygameapp_icon"
不同的东西?一些想法类似于 android:icon="@drawable/some_kind_of_wildcard/mygameapp_icon"
??
Though now I'm confused, when might the icon in plain "drawable" be used? what if its a completely unsuitable size for that device?... or should I have written something different to android:icon="@drawable/mygameapp_icon"
? somethink akin to android:icon="@drawable/some_kind_of_wildcard/mygameapp_icon"
??