FileProvider相关 Failed to find configured root that contains错误
来源:互联网 发布:什么是自动编程系统 编辑:程序博客网 时间:2024/06/05 17:34
问题:
java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/**
at android.support.v4.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:678)
at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:377)
这是在android6.0以上进行程序间文件共享使用FileProvider时出现的构造SD卡异常错误
解决方案:
在file_paths.xml文件中添加root-path 标签
<path> <root-path name="root_path" path="."/></path>
就可以了
阅读全文
0 0
- FileProvider相关 Failed to find configured root that contains错误
- FileProvider Failed to find configured root that contains
- 【Android】【Other】FileProvider相关 Failed to find configured root that contains
- 【Android】【Other】FileProvider相关 Failed to find configured root that contains
- FileProvider无法获取外置SD卡问题解决方案 | Failed to find configured root that contains
- Android爬坑之旅之FileProvider(Failed to find configured root that contains)
- FileProvider 的使用(Failed to find configured root that contains/storage/emulated/0/DCIM/ )
- FileProvider无法获取外置SD卡问题解决方案 | Failed to find configured root that contains
- FileProvider无法获取外置SD卡问题解决方案 | Failed to find configured root that contains(转)
- java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0
- 安卓 7.0 无法获取外置SD卡问题解决方案 | Failed to find configured root that contains
- failed to find Build Tools revision错误的解决
- vkEnumerateInstanceExtensionProperties failed to find
- Find document with array that contains a specific value
- WCF分布式开发常见错误(23):This could be due to the fact that the server certificate is not configured properly with HTTP.SYS
- Failed to find VM - aborting
- failed to find style 'textviewstyle'
- Error:Failed to find CMake.
- 欢迎使用CSDN-markdown编辑器
- 在Salesforce中实现4级联动
- 【linux】error: stdio.h: No such file or directory
- K-SVD算法
- AI 百万级人才缺口的背后
- FileProvider相关 Failed to find configured root that contains错误
- 解决 idea 卡顿问题并优化
- 时间序列分析与非参数统计
- Hue框架
- Spring Boot 在Idea中热部署方法
- 深究响应者链
- OGG常见参数说明
- 三维重建技术 各种方法简介
- Kafka API操作