Van1996
Van1996
报错log为: E/GifHeaderParser: onFail: 创建文件失败 有配置动态权限:Manifest.permission.WRITE_EXTERNAL_STORAGE
改用demo的默认路径: ``` FileUtil.getPhotoFileDir().getAbsolutePath() ``` 以后的代码(如下),依旧提示“ 创建文件失败” ```java Bitmap afterCut = cutPicture(bitmap); String afterCutPath = FileManager.getInstance().getEmptyPng(1); BitmapUtil.writeIntoFile(afterCut, afterCutPath); // 将裁剪完的bitmap保存到本地 File file = new File(afterCutPath); LogUtil.d("仅裁剪" + file.length() / 1024); CompressTools.newBuilder(mView.getContext())...