Bootstrap

第一行代码第三版第九章问题解决Failed to find configured root that contains

Process: com.example.cameraalbumtest, PID: 7797 java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/Android/data/com.example.cameraalbumtest/cache/output_image.jpg  

报错代码

解决方案把file_paths里面的

<cache-path-->

 name="my_images"-->

 path="."/>-->

 换成

<external-path name="external_files名字随便填" path="." />

补充

<external-path> 对应外部存储的根目录。

<external-cache-path> 对应外部存储的缓存目录。

<cache-path> 对应内部存储的缓存目录。

这样的就能正常运行, 

 

 

;