【Android】【Other】FileProvider相关 Failed to find configured root that contains
来源:互联网 发布:人力资源系统 源码 编辑:程序博客网 时间:2024/06/07 16:33
使用FileProvider构造SD卡中文件uri时异常
java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/840E-10F6/音乐/千里之外.mp3
at android.support.v4.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:678)
at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:377)
解决方案:
provider_paths.xml 中增加 root-path 标签
<paths xmlns:android="http://schemas.android.com/apk/res/android"> <root-path name="root_path" path="." /></paths>
阅读全文
0 0
- 【Android】【Other】FileProvider相关 Failed to find configured root that contains
- 【Android】【Other】FileProvider相关 Failed to find configured root that contains
- FileProvider相关 Failed to find configured root that contains错误
- FileProvider Failed to find configured root that contains
- Android爬坑之旅之FileProvider(Failed to find configured root that contains)
- FileProvider无法获取外置SD卡问题解决方案 | 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
- android文件FileProvider共享相关
- Gradle sync failed: failed to find target android-24
- [Android][Build Problems] failed to find build tools revision & failed to find target android 等问题解决
- vkEnumerateInstanceExtensionProperties failed to find
- Android - "cause failed to find target android-14" 问题
- Android studio error : Failed to find target android-X
- Android studio - Failed to find target android-18
- 第三周 【项目1
- Android最全开发资源及参考资料
- PDF页面参差不齐统一页面大小--Adobe印刷制作功能
- MySQL的limit的使用
- trigger载在了a标签手里
- 【Android】【Other】FileProvider相关 Failed to find configured root that contains
- VB.NET版机房收费系统之数据库设计
- oracle sql优化
- tomcat并发与线程数
- Xcode9配置Git操作
- 1.3多媒体存储技术
- Android 项目混淆
- ubuntu 16.04 安装docker、docker-compose
- HDU 6185Covering(矩阵快速幂)