首页 > 解决方案 > 无法在 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(不工作)

根据一位用户的报告,它也不适用于One UI三星的系统。

标签: javaandroidxiaomimiui

解决方案


推荐阅读