您需要检查 APK 中的图标,因为它无效

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

在尝试上传我的 apk 时出现此错误..."You need to check the icon inside your APK because it is not valid."

舱单代码

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

我的徽标是 矢量 资产

您的启动器图标应为 png 格式。阅读this。您可能应该遵循此约定并将您的 vector 转换为 png 它应该可以工作。

应用程序图标(ic_launcher 或其他)现在必须在 mipmap 中,因为 Google play 拒绝在可绘制文件夹中使用应用程序图标的任何构建。

这可能是由于以下一些原因造成的: 1) 你的启动器图像太大,安装 apk 可能会崩溃 UI 2) 启动器图标不在 mipmap 文件夹中 3)启动器图像不是PNG格式。

按照此 link 制作良好的启动器图像,既不会出现异常行为,也不会出现异常输出。

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

对我有用, 将我的应用程序图标替换为以下 Android 指南图标:

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

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