Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No named parameter with the name 'allowedMimeType' #14

Closed
abdul-vahid opened this issue Oct 30, 2018 · 4 comments
Closed

No named parameter with the name 'allowedMimeType' #14

abdul-vahid opened this issue Oct 30, 2018 · 4 comments

Comments

@abdul-vahid
Copy link

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(),

  );
@sidlatau
Copy link
Owner

What is an exact error message? Are you using the latest version of the plugin? Currently latest version is v1.1.3

@abdul-vahid
Copy link
Author

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-

image

@abdul-vahid
Copy link
Author

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.

@abdul-vahid
Copy link
Author

All Issues have been resolved now I can see you and able to select file. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants