Android第一行代码,第八章8.3调用摄像头和相册,调用摄像头的时候运行程序报错:java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/Android/data/com.example.cameratest/cache/output_image.jpg,
解决方法:把新建XML文件下的file_paths.xml文件里面的external-path name换为root-path即可。(path里面设置路径为空)
《第一行代码》调用摄像头程序问题
最新推荐文章于 2020-12-30 18:00:37 发布