java - 无法在 Android 上加载 Gboard 贴纸资源
问题描述
我创建了一个带有 Gboard 贴纸的 Android 应用程序,该应用程序可以在某些设备上运行,而在其他设备上则不能。
在我的 Honor 10 设备上,它按预期工作,而在我的小米 Mi 9 上,当我尝试在任何地方插入贴纸时,它会将此错误打印到 logcat:
04-26 20:52:57.650 2027 11006 W Glide : Load failed for android.resource://cz.chrastecky.chstickers/drawable/st002 with size [-2147483648x-2147483648]
04-26 20:52:57.650 2027 11006 W Glide : class axi: Failed to load resource
04-26 20:52:57.651 2027 2027 W Glide : Load failed for null with size [0x0]
04-26 20:52:57.651 2027 2027 W Glide : class axi: Received null model
04-26 20:52:57.653 2027 9448 W Image : Caught Error: likely due to not having both file formats
04-26 20:52:57.653 2027 9448 W Image : class axi: Failed to load resource
04-26 20:52:57.653 2027 9449 W Image : Caught Error: likely due to not having both file formats
04-26 20:52:57.653 2027 9449 W Image : class axi: Received null model
04-26 20:52:57.654 2027 2027 E ImageInsertTask: Failed to extract local cache file for android.resource://cz.chrastecky.chstickers/drawable/st002
我在 Google 上找不到任何关于此类错误的信息,请指出正确的方向。
根据评论中的要求更新:
荣誉10(工作)
- 安卓版本:
9
- Gboard 版本:
8.1.7.241875604-release-arm64-v8a
- Firebase 应用索引信息:
Sticker: 79
StickerPack: 1
小米米 9(不工作)
- 安卓版本:
9 PKQ1.181121.001
- Gboard版本:(
8.1.7.241875604-release-arm64-v8a
同荣耀10) - Firebase App Indexing 信息(与 Honor 10 相同):
Sticker: 79
StickerPack: 1
根据一位用户的报告,它也不适用于One UI
三星的系统。
解决方案
推荐阅读
- c - 没有加速结果的高斯消元
- mysql - 元键:返回 NULL 的值字段
- c# - 如何在c#中按高分对存储在文本文件中的数据进行排序
- angular - 激活change事件时如何获取下拉列表对应的json?
- keras - 检查目标时出错:预期 dense_49 的形状为 (2943,) 但得到的数组形状为 (1,)
- javascript - jquery对话框不加载iframe
- c# - Rest Architecture:Data Access Layer as Model,REST目的是调用调用DAL的业务逻辑层
- heroku - 如何防止公众进入非生产阶段?
- r - R - If 语句函数设置新列的值
- mysql - 如何从table2中减去数据到table1