android开发出现错误:Failed to find configured root that contains

在android8.0以上的手机上,读取共享文件时,如apk更新的编程中,我们把apk下载后,要安装时,去读取这个apk文件就出现了如下错误:

Failed to find configured root that contains
...

解决方法:

在file_provider_paths.xml文件中添加root-path 标签




你可能感兴趣的:(android开发出现错误:Failed to find configured root that contains)