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

后端 未结 13 1834
南方客
南方客 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-03 23:44

    In my case, the issue was simply that one of my app's dependencies had declared one of their activities to use android:icon="@color/black" in their manifest, instead of using a drawable. You don't get any compilation errors, and the apps works just fine. Only the aapt tool reports the error (or uploading to the Playstore). Note, libraries don't even need android:icon to be declared (they're not an installable app!) but AndroidStudio appears to default all projects to declare one in the manifest.

    0 讨论(0)
  • 2021-02-03 23:49

    Have you tried turning your computer off and then on again?

    Try removing android:icon="@drawable/app_icon from the Activity, as it will fall back to the icon specified in the Application.

    Try not using proguard.

    0 讨论(0)
  • 2021-02-03 23:49

    In may case, the problem is because I used @null for the value. Completely removing that fixes it. The same happens when you put @null for android:icon.

    0 讨论(0)
  • 2021-02-03 23:54

    for me it was the fact that I tried to put transparent icons like this:

    android:icon="@android:color/transparent"

    0 讨论(0)
  • 2021-02-03 23:54

    In my case, copied the png I use for my app icon into my "drawable-nodpi" folder and the Play store accepted my apk. If you don't have a nodpi folder, then maybe you just need to copy it out of your bucket size related drawable folders, and paste it into the base folder "drawable."

    This seems to be a recent Play store requirement, since I've never seen this error before today. Take note of androiddeveloper's comment as well.

    0 讨论(0)
  • 2021-02-03 23:57

    I see you tried everything i guess. Try changing icon maybe? :) I mean only possiblity that left is your icon.

    0 讨论(0)
提交回复
热议问题