Flutter Doctor 发现问题 Android_Home [英] Flutter Doctor found issue Android_Home
问题描述
我正在尝试在 Windows 10 中设置 Flutter.我有:
- 已安装 Android Studio
- Visual Studio 代码
当我在命令提示符下运行andoid doctor"时,没有显示任何错误:
但是当我尝试使用
我在将环境变量设置为:ANDROID_HOME = F:\Program Files\Android
即使在设置上述内容后,我也遇到相同的错误.
我的设备没有被 VS Code 检测到所以,当我搜索时我发现你需要在 Flutter 环境中设置 Android sdk 位置,以便 VS 代码检测设备所以我转到 Flutter sdk 文件夹 C:\Research\flutter
并双击 flutter_console
这打开了 Flutter 控制台并运行命令flutter config --android-sdk C:\Users\annur.arya\AppData\android-sdk
现在它可以工作了
I am trying to setup Flutter in windows 10. I have:
- Android Studio installed
- Visual Studio Code
When I run "andoid doctor" in command prompt is shows no errors:
But When I try to configure VSCode Editer with steps given in https://flutter.io/get-started/editor/
It Throws error as show below:
I tried after setting environment variable as: ANDROID_HOME = F:\Program Files\Android
Even after setting the above I get the same error.
My device was not getting detected by VS Code so , when i searched i found you need to set Android sdk location in Flutter environment for VS code to detect Device so i went to Flutter sdk folder C:\Research\flutter
and double clicked on flutter_console
which opened a Flutter console and run command
flutter config --android-sdk C:\Users\annur.arya\AppData\android-sdk
and now it works
这篇关于Flutter Doctor 发现问题 Android_Home的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!