Flutter 与 VS Code,无法找到 Android Studio 可执行文件 [英] Flutter with VS Code, Unable to locate Android Studio executable
问题描述
我重新安装了 flutter 和 android studio.我已经安装了 java 和 sdk 库,我可以从 vs 代码运行应用程序.但是,当我尝试在 android studio 中打开 android 模块时,我收到无法找到 Android Studio 可执行文件"消息,如附件所示.
I re-installed flutter and android studio. I have already installed java and sdk libraries and I can run the application from vs code. But when I tried to open android module in android studio I am getting 'Unable to locate Android Studio executable' message as in the attachment.
推荐答案
Flutter 扩展通过调用 flutter config --machine
来定位 Android Studio.看起来 Flutter 没有在那里返回 Android Studio 路径,因此您可以运行:
The Flutter extension locates Android Studio by calling flutter config --machine
. It looks like Flutter isn't returning an Android Studio path there, so you could run:
flutter config android-studio-dir /path/to/android/studio
然后 Flutter 应该记住它,并在它看起来时提供给 VS Code 扩展.
And then Flutter should remember it, and provide it to the VS Code extension when it looks.
这篇关于Flutter 与 VS Code,无法找到 Android Studio 可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!