Unable to launch Android Studio


I’m trying to convert a React app to a mobile app. When I run npx cap open android I get the following error:

[error] Unable to launch Android Studio. Is it installed?
Attempted to open Android Studio at: C:\Program Files\Android\Android Studio\bin\studio64.exe
You can configure this with the CAPACITOR_ANDROID_STUDIO_PATH environment variable.

I have installed Android studio and the path does seem to be correct, I can open the studio by clicking the studio64.exe

It’s telling you what you need to do…