Flutter_file_picker: MissingPluginException with gradle:4.0.1

Created on 15 Dec 2020  路  4Comments  路  Source: miguelpruivo/flutter_file_picker

all other plugins, including sentry_flutter require correct gradle versions to work well:

classpath 'com.android.tools.build:gradle:4.0.1'
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip

but file_picker plugin works only with certain gradle versions:

classpath 'com.android.tools.build:gradle:3.6.2'
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip

more over WiKi recommends gradle up to 4.0.1:
https://github.com/miguelpruivo/flutter_file_picker/wiki/Troubleshooting

Reproduced with:
file_picker: ^2.1.0
file_picker: ^2.1.1
file_picker: ^2.1.3
file_picker: ^2.1.4
file_picker: ^3.0.0-nullsafety.0

Flutter 1.25.0-8.0.pre

Exception on run release:
"MissingPluginException" "No implementation found for method getApplicationDocumentsDirectory on channel plugins.flutter.io/path_provider"

related to https://github.com/miguelpruivo/flutter_file_picker/issues/544

discussion

Most helpful comment

@miguelpruivo I should just change my nickname at this point :)

All 4 comments

Hi, the exception thrown has nothing to do with file_picker but with path_provider instead. Maybe you should file an issue there.

Edit: the Wiki only recommends you to use a specific gradle version if and _only if_ you are targeting Android SDK 30.

Thank you.

@miguelpruivo
thanks for reply
I created related path_provider issue, I guess they will complain back to the file_picker plugin:
https://github.com/flutter/flutter/issues/72353

@miguelpruivo I should just change my nickname at this point :)

@miguelpruivo
Fixed with latest Flutter dev by Flutter team, thanks a lot

Was this page helpful?
0 / 5 - 0 ratings

Related issues

creativecreatorormaybenot picture creativecreatorormaybenot  路  6Comments

omuomugin picture omuomugin  路  4Comments

repetitions picture repetitions  路  4Comments

hauketoenjes picture hauketoenjes  路  6Comments

JAICHANGPARK picture JAICHANGPARK  路  3Comments