Shadow icon indicating copy to clipboard operation
Shadow copied to clipboard

FileProvider 初始化报错 android.content.res.Resources$NotFoundException

Open Heart-Beats opened this issue 3 years ago • 2 comments

大佬,我在做插件依赖 Base 插件启动时,报如下错误: image

插件结构如下:nygl dependsOn = ['base-app'] image

在 nygl 的插件中声明了一个 FileProvider , 声明如下: image

报错的实际原因就是找不到 provider_um_paths 这个文件,但是生成的插件 APK 中是有这个资源的: image

对应的资源文件也可以找到: image

不是很明白是什么原因导致的,希望大佬可以指点一下?

Heart-Beats avatar Jan 04 '23 09:01 Heart-Beats

https://github.com/shifujun/Shadow/commit/e3e8d474b3541e642ab2cdc648e09aea84a922a9

你可以试试这个提交是不是能解决你的问题。

shifujun avatar Jan 04 '23 09:01 shifujun

好的,我明天有时间的话拉下来打包看看

Heart-Beats avatar Jan 04 '23 09:01 Heart-Beats