Closed abdul-vahid closed 6 years ago
What is an exact error message? Are you using the latest version of the plugin? Currently latest version is v1.1.3
Hi sidlatau,
The issue has been resolved when I run flutter doctorate command, but I am finding new issue that when I am running your example it keep showing me Resolving Dependency and app is not working...
https://pub.dartlang.org/packages/flutter_document_picker#-example-tab-
Now I am getting this error:
Launching lib\main.dart on XT1663 in debug mode... Initializing gradle... Resolving dependencies... timeout waiting for the application to start
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring project ':flutter_document_picker'.
Could not resolve all files for configuration ':flutter_document_picker:classpath'. Could not download builder.jar (com.android.tools.build:builder:3.2.1) Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.2.1/builder-3.2.1.jar'. Premature end of Content-Length delimited message body (expected: 28300680; received: 4456416
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 6m 33s
Finished with error: Please review your Gradle project setup in the android/ folder.
All Issues have been resolved now I can see you and able to select file. Thanks
Hi, Here in the following snippet, it shows me that allowedMimeType is not a parameter, can you please let me know how we can resolve it?
FlutterDocumentPickerParams params = FlutterDocumentPickerParams( allowedMimeType: _checkByMimeType ? _mimeTypeController.text : null, allowedFileExtensions: _checkByCustomExtension ? _extensionController.text .split(' ') .where((x) => x.isNotEmpty) .toList() : null, allowedUtiTypes: _iosPublicDataUTI ? null : _utiController.text .split(' ') .where((x) => x.isNotEmpty) .toList(),