Describe the bug
If I put this example code in my project ( and import file picker 2.1.6 or 3.0.0) it throws an error at startup:
FilePickerResult result = await FilePicker.platform.pickFiles();
if(result != null) {
File file = File(result.files.single.path);
} else {
// User canceled the picker
}
If I drop out the import in pubspec it runs normally
Error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Android resource linking failed
/Users/interno/Documents/Projeto/gmobil_app_md/build/file_picker/intermediates/library_manifest/debug/AndroidManifest.xml:9:5-15:15: AAPT: error: unexpected element <queries> found in <manifest>.
* 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 2m 15s
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin cloud_firestore...
Running Gradle task 'assembleAarRelease'...
Exception: The plugin cloud_firestore could not be built due to the issue above.
Hi. This has nothing to do with firestore and the error you are getting has a solution described in the repo’s wiki. You need to update to a compatible gradle version that supports the new <queries> tag.
Describe the bug If I put this example code in my project ( and import file picker 2.1.6 or 3.0.0) it throws an error at startup:
If I drop out the import in pubspec it runs normally
Error:
Platform
Platform OS version 10