gpt4 book ai didi

android - 包含 path_provider 时出错

转载 作者:IT王子 更新时间:2023-10-29 07:07:04 24 4
gpt4 key购买 nike

我在尝试编译 path_provider 时遇到错误:

/home/user/projects/flutterframework/TestApp/android/app/src/main/java/io/flutter/plugins/PluginRegistry.java:15:

error: cannot find symbol

path_provider = PathProviderPlugin.register(activity);

symbol: method register(FlutterActivity)

location: class PathProviderPlugin

1 error

FAILURE: Build failed with an exception.

What went wrong:

Execution failed for task ':app:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

我该如何解决?Lubuntu 16 LTS x64

最佳答案

听起来您有一个旧的项目模板。你不应该有 PluginRegistry.java。尝试 flutter 升级,重新创建您的项目并将旧项目的 dart 文件和 Assets 复制过来。

关于android - 包含 path_provider 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44099623/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com