我尝试在Ubuntu中下载flutter,运行flutter doctor后遇到错误。
[✗] 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 配置 --android-sdk to update to that location.
我想在 Ubuntu 中下载 flutter,但我在使用 android sdk 时遇到错误
sudo apt-get install
铿锵 cmake git
ninja-build pkg-config
libgtk-3-dev liblzma-dev
libstdc++-12-dev
阅读包裹清单...完成
构建依赖树
读取状态信息...完成
E: 无法找到包 libstdc++-12-dev
E:无法通过正则表达式“libstdc++-12-dev”找到任何包
运行以下命令设置 Android SDK 的正确路径: flutter config --android-sdk $HOME/Android/Sdk
通过运行检查问题是否已解决:flutter doctor