android Flutter未找到所需的包

bmvo0sr5  于 2023-02-10  发布在  Android
关注(0)|答案(2)|浏览(200)
type hereCMake Error at /snap/flutter/130/usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message):
  A required package was not found
Call Stack (most recent call first):
  /snap/flutter/130/usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:643 (_pkg_check_modules_internal)
  flutter/ephemeral/.plugin_symlinks/audioplayers_linux/linux/CMakeLists.txt:25 (pkg_check_modules)

我尝试使用audioplayer软件包播放音频文件,然后在尝试运行应用程序时出现此错误

w6mmgewl

w6mmgewl1#

按照这里的说明安装Flutter,而不是使用Snap包。不幸的是,Snap包已知会导致这类问题。

dldeef67

dldeef672#

sudo apt-get安装--重新安装软件包配置cmake-data

相关问题