Flutter with VS Code, Unable to locate Android Studio executable

Viewed 757

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. enter image description here

1 Answers

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

And then Flutter should remember it, and provide it to the VS Code extension when it looks.

Related