简体   繁体   English

Flutter 找不到所需的 package flutter_secure_storage/linux/CMakeLists.txt:14

[英]Flutter A required package was not found flutter_secure_storage/linux/CMakeLists.txt:14

A required package was not found Call Stack (most recent call first): /snap/flutter/101/usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:597 (_pkg_check_modules_internal) flutter/ephemeral/.plugin_symlinks/flutter_secure_storage/linux/CMakeLists.txt:14 (pkg_check_modules)未找到所需的 package 调用堆栈(最近调用优先):/snap/flutter/101/usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:597 (_pkg_check_modules_internal) flutter/ephemeral/.plugin_symlinks/flutter_secure_storage/linux /CMakeLists.txt:14 (pkg_check_modules)

In the doc of the package you can see it needs libsecret.包的文档中,您可以看到它需要 libsecret。

You just need to install the following packages:您只需要安装以下软件包:

sudo apt install libsecret-1-dev libsecret-tools libsecret-1-0

That worked for me :)这对我有用:)

sudo apt-get install libsecret-1-dev libjsoncpp-dev libsecret-1-0

为我工作

If you, like me, already have libsecret-1-dev, libjsoncpp-dev and libsecret-1-0 installed, look in the message for the line of CMakeList.txt which error occurs:如果您和我一样,已经安装了 libsecret-1-dev、libjsoncpp-dev 和 libsecret-1-0,请在消息中查找发生错误的 CMakeList.txt 行:

Call Stack (most recent call first): ...调用堆栈(最近的调用优先):...
flutter/ephemeral/.plugin_symlinks/flutter_secure_storage_linux/linux/CMakeLists.txt:14 (pkg_check_modules) flutter/ephemeral/.plugin_symlinks/flutter_secure_storage_linux/linux/CMakeLists.txt:14 (pkg_check_modules)

Line 14, in case: pkg_check_modules(JSONCPP REQUIRED IMPORTED_TARGET jsoncpp )第 14 行,以防: pkg_check_modules(JSONCPP REQUIRED IMPORTED_TARGET jsoncpp )

So, all you need is install the package missing.因此,您只需要安装缺少的软件包即可。 Im my case (Ubuntu 18.04) the package is libjsoncpp-dev:我的情况(Ubuntu 18.04)包是libjsoncpp-dev:

$ sudo apt install libjsoncpp-dev

On my side, I removed the firebase_ui_auth: ^1.1.6 package from my project and it was able to run.在我这边,我从我的项目中删除了 firebase_ui_auth : ^1.1.6 package 并且它能够运行。 I think there might be a bug in the package. Run:我认为 package 中可能存在错误。运行:

$ flutter pub remove firebase_ui_auth

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将Makefile转换为CMakeLists.txt - Converting Makefile to CMakeLists.txt 如何使用 CMake 为 Linux 链接和编译 C++ 项目? (改编 CMakeLists.txt) - How to link and compile a C++ project for Linux using CMake? (Adapting CMakeLists.txt) 编辑CMakeLists.txt以使用-fPIC进行编译 - Edit CMakeLists.txt to compile with -fPIC 由于“no option -Wunused-command-line-argument”错误,CMakeLists.txt 生成的 makefile 适用于 MacO,但不适用于 linux - CMakeLists.txt's generated makefile works on MacOs but not on linux due to "no option -Wunused-command-line-argument" error 如何为具有多个子目录的大项目编写“CMakeLists.txt”? - How to write "CMakeLists.txt" for a big project with multiple subdirectories? 如何在CMakeLists.txt中指定CMake的安装路径 - How to specify the path where CMake is installed in the CMakeLists.txt Eclipse安全存储Linux - Eclipse secure storage linux cmake 错误 [SDK/Util/CMakeLists.txt:132 (add_library) 处的 CMake 错误] - cmake error [CMake Error at SDK/Util/CMakeLists.txt:132 (add_library)] 配置 vscode 以包含多个子项目的 CMakeLists.txt 文件 - configure vscode to include CMakeLists.txt file of multiple sub-project CMake 找不到源文件,但文件未在 CMakeLists.txt 中指定,在 TFS 构建定义中 - CMake cannot find source file, but file was not specified in CMakeLists.txt, in TFS build definition
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM