【自学Flutter随意纪录】开始安装时遇到的各种令人厌烦的issues

大家好我是容易放弃的前工程师,我想写自己的APP很久了但每次环境设定就让我止步,经过了一年的怠惰放弃最终进行了往前一步的尝试,感谢ChatGPT还有Gemini的协助让我终于完成安装的第一步骤:No issues found!

以下是我遇到的三个问题:

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
X cmdline-tools component is missing
Run path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details.

因为我不会用cmd的关係让我只能尝试利用介面

Open Android StudioTools > SDK Manager
http://img2.58codes.com/2024/20165643ErK32HII7O.pngSDK Tools > Android SDK Command-line Tools (latest) > Apply
如果还没下载 Android SDK Command-line Tools (latest) 左边会有一个下载的icon记得先按下载
http://img2.58codes.com/2024/20165643CHnJml02jn.png[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
X Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

因为我不会用cmd的关係,后来才发现非常的直觉,完整输入即可。
http://img2.58codes.com/2024/2016564393ILxLXosi.png

[!] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.5.4)
X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++" workload, and include these components:
    MSVC v142VS 2019 C++ x64/x86 build tools
    - If there are multiple build tool versions available, install the latest C++ CMake tools for Windows
    Windows 10 SDK打开 Visual Studio Installer按下 修改 Modify选择 "Desktop development with C++"选择 安装 Install
http://img2.58codes.com/2024/20165643Ea2fdORsoy.png

全部完成之后再重跑一次 flutter doctor 就可以见到 No issues found!


关于作者: 网站小编

码农网专注IT技术教程资源分享平台,学习资源下载网站,58码农网包含计算机技术、网站程序源码下载、编程技术论坛、互联网资源下载等产品服务,提供原创、优质、完整内容的专业码农交流分享平台。

热门文章