I think there is a problem with getting storage permission process in your plugin. I/FilePickerDelegate(28458): File URI:content://.documents/document/image%3A68742 E/FilePickerUtils(28458): Getting for API 19 or abovecontent://.documents/document/image%3A68742 E/FilePickerUtils(28458): Document URI E/FilePickerUtils(28458): Media Document URI I/FilePickerUtils(28458): Image Media Document URI I/FilePickerDelegate(28458): Absolute file path:/storage/emulated/0/DCIM/Screenshots/Screenshot_-00-29-52-845_ir. E/flutter (28458): Unhandled Exception: FileSystemException: Cannot open file, path = '/storage/emulated/0/DCIM/Screenshots/Screenshot_-00-29-52-845_ir.' (OS Error: Permission denied, errno = 13) E/flutter (28458): #0 _File.throwIfError (dart:io/file_impl.dart:645:7) E/flutter (28458): #1 _File.openSync (dart:io/file_impl.dart:489:5) E/flutter (28458): #2 _File.readAsBytesSync (dart:io/file_impl.dart:549:18) E/flutter (28458): #3 _MyHomePageState.getFile (package:flutter_file_picker_test/main.dart:74:20) E/flutter (28458): Īfter search and try and fail I found the issue that the target and build SDK is 29.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |