Ошибка пакета Flutter file_picker при создании приложения
Я создал приложение Flutter, и часть требований - это выбор файлов из хранилища. Я остановился на
file_picker 3.0.1
пакет для этого из-за нескольких руководств по его использованию. Однако я столкнулся с проблемой при попытке запустить приложение. Я даже не начал пользоваться пакетом. Вот ошибка, которую я получаю
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
C:\Users\Hp\FlutterProjects\flutter_application_test\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 5m 31s
Это еще одна ошибка, которую я тоже получаю
The build failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetifier to solve the incompatibility.
Building plugin file_picker...
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'file_picker'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
* 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 1m 12s