MUHAMMED IQBAL PA
MUHAMMED IQBAL PA

Reputation: 3622

Flutter with VS Code, Unable to locate Android Studio executable

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

1

Upvotes: 9

Views: 3402

Answers (3)

surga
surga

Reputation: 1671

if you are on mac the put this in :

flutter config --android-studio-dir "/Applications/Android Studio.app/Contents"

Upvotes: 16

Deepjyoti Baishya
Deepjyoti Baishya

Reputation: 15

Simple go to C:\Program Files\Android\Android Studio\jbr folder and copy all Folder with files then paste it on C:\Program Files\Android\Android Studio\jre folder And Restart your PC.

Hope your Problem is gone. Thank you

Upvotes: 0

Danny Tuppeny
Danny Tuppeny

Reputation: 42413

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.

Upvotes: 3

Related Questions