问题
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