<code>pubspec.yaml</code>

问题描述 投票:0回答:0
flutter run

运行我的项目时,我会得到以下错误:

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).

我尝试过的步骤:

wriming

flutter clean
然后

flutter pub get

使用flutter pub upgrade

    填充
  1. .pub-cache
    文件夹并重新安装依赖项
  2. 问题:
  3. 
    
  4. 我如何解决此错误?
  5. 是否有一个替代的
    file_picker
  6. quill_html_editor
可以与Flutter 3.7.0?

一起使用 我需要手动更新一些gradle设置吗?

    任何帮助将不胜感激!
  1. 您必须使用
    file_picker
    8.3.6+进行颤动3.29(飞镖3.7.0)兼容性。
android flutter flutter-dependencies quill filepicker
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.