getting " 'android:icon' attribute: attribute is not a string value” error while uploading an APK to the play store

后端 未结 13 1906
南方客
南方客 2021-02-03 23:20

Background

After so many hours of my free time, I\'m ready to publish my very first app to the play store, but sadly I\'m having difficulties uploading the signed app.

13条回答
  •  灰色年华
    2021-02-04 00:04

    I think I was hit by this issue (or something similar, not sure) when I tried to use an XML drawable as the icon (to add padding, etc. to the PNG image). I don't think your issue is the same though, since you seem to refer to the PNG file directly.

    Some suggestions to try (to track down the problem by process of elimination):

    • Remove res/drawable-mdpi/app_icon.png file and see if you got a different error.
    • Remove all android:icon attributes in your manifest and see if you still got the error.
    • Rename any other resource named app_icon in the project to something else.

    If all else fail, I would probably start stripping out the external JARs and library projects (and probably temporarily commenting the code that refer to them) just to see if the error was triggered by any of them. Or maybe start fresh with a bare minimum AndroidManifest.xml and add your stuff one item at a time.

    Another idea is to try to figure out why aapt is producing the error. Maybe download the source and try to debug it?

提交回复
热议问题