dnh*_*yde 13 icons android webp android-studio
我在为我的应用程序Android Studio Arctic Fox | 2020.3.1 Patch 1生成图标后使用,我将资源文件夹ic_launcher中的所有图标作为图像获取。默认图标采用格式,因此我想将自动生成的图标转换为.mipmap.png.webp.png.webp
但是,按照在 Android Studio 中将图像转换为 WebP 的官方指南,无论我选择什么选项(例如,即使我取消选中Skip files where the encoded result is larger than the original),都不会发生任何情况。我的minSdkVersion是 23,所以这不是因为 api 级别 18 之前不支持透明度。
我只收到一条通用消息,说转换已被跳过,但我不明白为什么......

我错过了什么吗?这是最新 IDE 版本中的错误吗?
webp最初,不支持格式的启动器图标,但现在情况并非如此。我认为这就是 Android studio 不将这些启动器图标转换为webp格式的原因。
修复:如果您可以使用 Windows 中的文件资源管理器或 Mac 中的 Finder 重命名这些文件,那么 Android studio 不会将这些文件视为启动器图标(因为在 Android studio 中未执行重命名,因此它将无法跟踪它)。之后该工具将完美运行。
请参阅android 文档If the minSdkVersion of a new project is set to API 18 or higher, the launcher icons created in newly created projects will be .webp images instead of .png. 中的API 18 之后对启动器图标的支持webp
| 归档时间: |
|
| 查看次数: |
1357 次 |
| 最近记录: |