大家好我是容易放弃的前工程师,我想写自己的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 ManagerSDK Tools > Android SDK Command-line Tools (latest) > Apply
如果还没下载 Android SDK Command-line Tools (latest) 左边会有一个下载的icon记得先按下载
[!] 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的关係,后来才发现非常的直觉,完整输入即可。
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
全部完成之后再重跑一次 flutter doctor 就可以见到 No issues found!