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

后端 未结 13 1868
南方客
南方客 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.

提交回复
热议问题