老版本使用的是
FileBinaryResource resource = (FileBinaryResource)Fresco.getImagePipelineFactory().getMainDiskStorageCache().getResource(new SimpleCacheKey(uri.toString()));
File file = resource.getFile();
其中getMainDiskStorageCache()方法在新版本中已经被弃用
新版本方法为
FileBinaryResource resource = (FileBinaryResource)Fresco.getImagePipelineFactory().getMainFileCache().getResource(new SimpleCacheKey(uri.toString()));
File file = resource.getFile();