AndroidStudio报错:java.lang.IllegalArgumentException: Failed to find configured root that contains
AndroidStudio报错:java.lang.IllegalArgumentException: Failed to find configured root that contains
AndroidStudio报错W/System.err: java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/.../Cache/P_20201118144205.jpg
如图:
解决方案
找到file_provider_paths.xml(每个项目的该xml的名字可能会有些许不同),在里面增加
<external-path
name="app_provider_path_A10"
path="." />
如果已经有了,就把path的值改为.或者/
参考
https://www.edoou.com/articles/1592550651230126
https://www.imooc.com/wenda/detail/603122
https://blog.csdn.net/songzi1228/article/details/83546066
https://blog.csdn.net/leilifengxingmw/article/details/57405908
https://blog.csdn.net/qq_30552993/article/details/94614108?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.compare&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.compare
更多推荐




所有评论(0)