Objectbox Flutter/Dart CMake 3.11 or higher is required 错误,其中安装了 CMake 3.16.3
Objectbox Flutter/Dart CMake 3.11 or higher is required error where CMake 3.16.3 is installed
在 vs code 上选择“开始调试”菜单项时发生错误。错误详情:
Launching lib/main.dart on Linux in debug mode... CMake Error at
flutter/ephemeral/.plugin_symlinks/objectbox_flutter_libs/linux/CMakeLists.txt:1
(cmake_minimum_required): CMake 3.11 or higher is required. You are
running version 3.10.2 Exception: Unable to generate build files
Exited (sigterm)
但是CMake版本更高:
$ cmake --version
cmake version 3.16.3
CMake 套件由 Kitware (kitware.com/cmake) 维护和支持。
开发环境详情:
Ubuntu Ubuntu 20.04.3 LTS, Flutter Stable 2.5.2
environment:
sdk: '>=2.12.0 <3.0.0'
dependencies:
objectbox: ^1.2.0
objectbox_flutter_libs: any
dev_dependencies:
objectbox_generator: any
我尝试过 Flutter beta 频道,并回溯了几个 Objectbox 版本。总是同样的错误。
删除 Flutter 的快照安装并手动重新安装 Flutter 解决了该问题。
在 vs code 上选择“开始调试”菜单项时发生错误。错误详情:
Launching lib/main.dart on Linux in debug mode... CMake Error at flutter/ephemeral/.plugin_symlinks/objectbox_flutter_libs/linux/CMakeLists.txt:1 (cmake_minimum_required): CMake 3.11 or higher is required. You are running version 3.10.2 Exception: Unable to generate build files Exited (sigterm)
但是CMake版本更高:
$ cmake --version
cmake version 3.16.3
CMake 套件由 Kitware (kitware.com/cmake) 维护和支持。
开发环境详情:
Ubuntu Ubuntu 20.04.3 LTS, Flutter Stable 2.5.2
environment:
sdk: '>=2.12.0 <3.0.0'
dependencies:
objectbox: ^1.2.0
objectbox_flutter_libs: any
dev_dependencies:
objectbox_generator: any
我尝试过 Flutter beta 频道,并回溯了几个 Objectbox 版本。总是同样的错误。
删除 Flutter 的快照安装并手动重新安装 Flutter 解决了该问题。