FLUTTER DOCTOR [X] Android 工具链
FLUTTER DOCTOR [X] Android toolchain
大家好,当我在控制台上输入“Flutter doctor”时,我遇到了 android-SDK 的问题,然后再向我展示:
[√] Flutter (Channel stable, 2.2.1, on Microsoft Windows [Version 10.0.18363.1500],
locale pl-PL)
[X] Android toolchain - develop for Android devices
X 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/windows#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
[√] Android Studio
[√] Connected device (1 available)
我检查了平台工具,我认为我拥有安装所需的一切
我的平台-工具屏幕
enter image description here
enter image description here
我的 SDK 文件夹
enter image description here
尝试 运行 这个适用于 me.I 的命令,希望它也适用于你。
flutter doctor --android-licenses
X Unable to locate Android SDK.
在“Windows10中的环境变量”中添加AndroidSDK的位置
https://programsbuzz.com/article/how-set-android-environment-variable-path-windows-10
此错误表示您的“Android SDK Command-line 工具丢失”
- 打开Android工作室
- 在菜单栏中,单击工具(倒数第 4 个)
- 选择SDK工具面板
- 勾选AndroidSDKCommand-line工具
- 单击 window
底部的 应用
它将开始下载缺少的组件
投票如果对你有帮助就点赞
大家好,当我在控制台上输入“Flutter doctor”时,我遇到了 android-SDK 的问题,然后再向我展示:
[√] Flutter (Channel stable, 2.2.1, on Microsoft Windows [Version 10.0.18363.1500],
locale pl-PL)
[X] Android toolchain - develop for Android devices
X 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/windows#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
[√] Android Studio
[√] Connected device (1 available)
我检查了平台工具,我认为我拥有安装所需的一切
我的平台-工具屏幕
enter image description here
enter image description here
我的 SDK 文件夹 enter image description here
尝试 运行 这个适用于 me.I 的命令,希望它也适用于你。
flutter doctor --android-licenses
X Unable to locate Android SDK.
在“Windows10中的环境变量”中添加AndroidSDK的位置
https://programsbuzz.com/article/how-set-android-environment-variable-path-windows-10
此错误表示您的“Android SDK Command-line 工具丢失”
- 打开Android工作室
- 在菜单栏中,单击工具(倒数第 4 个)
- 选择SDK工具面板
- 勾选AndroidSDKCommand-line工具
- 单击 window 底部的 应用
它将开始下载缺少的组件
投票如果对你有帮助就点赞