I am using Ubuntu 22.04, flutter 3.16.2, I got following error while running flutter build linux
or flutter run
. apparently flutter is using cmake 3.16
while corrosion
requires 3.22
. i tried both the master branch branch and 2.5.4
tag.
anyone got similar issue?
intiface-central git:(v2.5.4) flutter build linux --release
CMake Error at /home/monsterz/workspace/intiface-central/build/linux/x64/release/_deps/corrosion-src/CMakeLists.txt:1 (cmake_minimum_required):
CMake 3.22 or higher is required. You are running version 3.16.3
Building Linux application...
Unable to generate build files
I have cmake 3.22 installed
➜ intiface-central git:(v2.5.4) cmake --version
cmake version 3.22.1
CMake suite maintained and supported by Kitware (kitware.com/cmake).
Flutter doctor give me
intiface-central git:(v2.5.4) flutter doctor -v
[✓] Flutter (Channel stable, 3.16.2, on Ubuntu 22.04.3 LTS 6.2.0-37-generic, locale en_US.UTF-8)
• Flutter version 3.16.2 on channel stable at /home/monsterz/snap/flutter/common/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 9e1c857886 (5 days ago), 2023-11-30 11:51:18 -0600
• Engine revision cf7a9d0800
• Dart version 3.2.2
• DevTools version 2.28.3
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop
• clang version 10.0.0-4ubuntu1
• cmake version 3.16.3
• ninja version 1.10.0
• pkg-config version 0.29.1
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
[✓] VS Code (version unknown)
• VS Code at /snap/code/current
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
✗ Unable to determine VS Code version.
[✓] Connected device (1 available)
• Linux (desktop) • linux • linux-x64 • Ubuntu 22.04.3 LTS 6.2.0-37-generic
[✓] Network resources
• All expected network resources are available.
! Doctor found issues in 3 categories.