共享图像 - 无法找到包含的已配置根目录

Sharing image - Failed to find configured root that contains

我可以分享从相机以外的其他文件夹添加的文件。我在 Lenova K3 Note 中遇到以下异常。

java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/9016-4EF8/DCIM/Camera/IMG_20180317_111252.jpg

file_paths.xml

<?xml version="1.0" encoding="utf-8"?>
<paths>
   <files-path
       name="Camera"
       path="/Camera/" />
   <files-path
       name="Files"
       path="." />
   <external-path
       name="Downloads"
       path="/Download/" />
   <external-path
       name="WhatsApp"
       path="/WhatsApp/" />
   <external-path
       name="Camera"
       path="/Camera/" />
   <external-path
       name="Others"
       path="." />
   <external-files-path
       name="Camera"
       path="/Camera/" />
   <external-files-path
       name="Files"
       path="." />
</paths>

can share files those added from other folders except camera

没有。与相机无关

您不能将 FileProvider 用于可移动 SD 卡。

是的,您不能将 FileProvider 用于可移动 SD 卡。 但是您可以使用 root-path 并带有警告

Element root-path is not allowed here

关注

<root-path
    name="Name"
    path="." />