You need to add an icon to your APK while uploading App to google play

风格不统一 提交于 2019-12-17 16:35:00

问题


I dont know where i am going wrong . I need to upload APK to google play and whenever i am trying to upload it , it is showing an error message as displayed in the attached screenshot. The error is that " You need to add an icon to your APK " but for sure i have already added an icon to my APk in my manifest file . I dont what it is asking for whether it is error because of icon resolution or there is something i am lacking with . pls help .


回答1:


It is likely that in your manifest that you do not have an icon defined or are referencing an image that does not exist.




回答2:


I had the same problem make sure that you don't have \n in the name of your application




回答3:


The same problem but in my case I was missing "android:icon" attribute in application element, note I had it only in activity.

<application ... android:icon="@drawable/ic_launcher">
    <activity ... android:icon="@drawable/ic_launcher">



回答4:


After long and painful search, found that ApplicationAttributes in Manifest file was empty, inspite of mentioning android:icon="@drawable/app_icon" in AndroidManifest.xml.

Filling up ApplicationAttributes solved my problem.




回答5:


remove \n from your application name



来源:https://stackoverflow.com/questions/14644711/you-need-to-add-an-icon-to-your-apk-while-uploading-app-to-google-play

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!