Package quill_html_editor:android references quill_html_editor:android as the default plugin, but it does not provide an inline implementation.
Package file_picker:linux references file_picker:linux as the default plugin, but it does not provide an inline implementation.
/Users/mac/.pub-cache/hosted/pub.dev/file_picker-6.2.1/android/src/main/java/com/mr/flutter/plugin/filepicker/FilePickerPlugin.java:122: error: cannot find symbol
public static void registerWith(final io.flutter.plugin.common.PluginRegistry.Registrar registrar) {
^
symbol: class Registrar
location: interface PluginRegistry
/Users/mac/.pub-cache/hosted/pub.dev/file_picker-6.2.1/android/src/main/java/com/mr/flutter/plugin/filepicker/FilePickerPlugin.java:251: error: cannot find symbol
final PluginRegistry.Registrar registrar,
^
symbol: class Registrar
location: interface PluginRegistry
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':file_picker:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* 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 53s
┌─ Flutter Fix ───────────────────────────────────────────────────────────────────────────────────┐
│ [!] Consult the error logs above to identify any broken plugins, specifically those containing │
│ "error: cannot find symbol..." │
│ This issue is likely caused by v1 embedding removal and the plugin's continued usage of removed │
│ references to the v1 embedding. │
│ To fix this error, please upgrade your current package's dependencies to latest versions by │
│ running `flutter pub upgrade`. │
│ If that does not work, please file an issue for the problematic plugin(s) here: │
│ https://github.com/flutter/flutter/issues │
└─────────────────────────────────────────────────────────────────────────────────────────────────┘
Error: Gradle task assembleDebug failed with exit code 1
Exited (1).
Шаги, которые я пробовал:
Запуск flutter clean, а затем flutter pub get
Обновление зависимостей с помощью обновления flutter pub
Удаление папки .pub-cache и переустановка зависимости
Вопросы:
Как устранить эту ошибку?
Есть ли альтернатива file_picker или quill_html_editor, которая работает с Flutter 3.7.0?
Да Мне нужно вручную обновить некоторые настройки Gradle?
Я работаю над проектом Flutter и столкнулся с ошибкой сборки при попытке запустить его на устройстве Android. Ниже приведен мой файл pubspec.yaml: [code]environment: sdk: "3.7.0"
[/code] Когда я пытаюсь запустить проект с помощью flutter run, я получаю следующие ошибки: [code]Package quill_html_editor:android references quill_html_editor:android as the default plugin, but it does not provide an inline implementation.
Package file_picker:linux references file_picker:linux as the default plugin, but it does not provide an inline implementation.
/Users/mac/.pub-cache/hosted/pub.dev/file_picker-6.2.1/android/src/main/java/com/mr/flutter/plugin/filepicker/FilePickerPlugin.java:122: error: cannot find symbol public static void registerWith(final io.flutter.plugin.common.PluginRegistry.Registrar registrar) { ^ symbol: class Registrar location: interface PluginRegistry
/Users/mac/.pub-cache/hosted/pub.dev/file_picker-6.2.1/android/src/main/java/com/mr/flutter/plugin/filepicker/FilePickerPlugin.java:251: error: cannot find symbol final PluginRegistry.Registrar registrar, ^ symbol: class Registrar location: interface PluginRegistry 2 errors
FAILURE: Build failed with an exception.
* What went wrong: Execution failed for task ':file_picker:compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details.
* 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 53s
┌─ Flutter Fix ───────────────────────────────────────────────────────────────────────────────────┐ │ [!] Consult the error logs above to identify any broken plugins, specifically those containing │ │ "error: cannot find symbol..." │ │ This issue is likely caused by v1 embedding removal and the plugin's continued usage of removed │ │ references to the v1 embedding. │ │ To fix this error, please upgrade your current package's dependencies to latest versions by │ │ running `flutter pub upgrade`. │ │ If that does not work, please file an issue for the problematic plugin(s) here: │ │ https://github.com/flutter/flutter/issues │ └─────────────────────────────────────────────────────────────────────────────────────────────────┘ Error: Gradle task assembleDebug failed with exit code 1
Exited (1). [/code] [b]Шаги, которые я пробовал:[/b] [list] [*]Запуск flutter clean, а затем flutter pub get [*]Обновление зависимостей с помощью обновления flutter pub [*]Удаление папки .pub-cache и переустановка зависимости [/list] [b]Вопросы:[/b] [list] [*]Как устранить эту ошибку? [*]Есть ли альтернатива file_picker или quill_html_editor, которая работает с Flutter 3.7.0? [*]Да Мне нужно вручную обновить некоторые настройки Gradle? [/list] Буду очень признателен за любую помощь!