You need to check the icon inside your APK because it is not valid

两盒软妹~` 提交于 2020-07-03 06:15:25

问题


While trying to upload my apk im getting this error..."You need to check the icon inside your APK because it is not valid."

Manifest Code

<application
    android:allowBackup="true"
    android:icon="@drawable/wallet_logo"
    android:label="Wallet"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">

My logo is a vector asset


回答1:


Your launcher icon should be in png format. Read this. You should probably follow this convention and convert your vector to png and it should work.




回答2:


The app icon specifically (ic_launcher or whatever) must be in mipmap now, since Google play rejects any builds with the app icon in drawable folders.




回答3:


This may be happening because of some of the following reasons: 1)your launcher image size is too big and installing the apk may crash the UI 2)Launcher icon is not in the mipmap folder 3)Launcher image is not in PNG.

Follow this link to make good launcher images which will not behave weirdly nor have weird outputs.

https://romannurik.github.io/AndroidAssetStudio/icons-launcher.html#foreground.type=image&foreground.space.trim=1&foreground.space.pad=0.25&foreColor=rgba(96%2C%20125%2C%20139%2C%200)&backColor=rgb(255%2C%20235%2C%2059)&crop=0&backgroundShape=square&effects=shadow&name=ic_launcher




回答4:


It's worked for me, Replaces my app icon with below Android guidelines icon:

512 x 512, 32-bit PNG (with alpha)

And place the icon in mipmap folder not in drawable folder.



来源:https://stackoverflow.com/questions/37416428/you-need-to-check-the-icon-inside-your-apk-because-it-is-not-valid

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