Android studio "Could not find installation home path. Please make sure bin/ is present in the installation directory"


I installed a new version of Android Studio on Windows (see version below)
Now when I run npx cap open android in my Ionic Capacitor I get the error below.

enter image description here

I have tried changing the PATH environment variables with no success.
Android Studio is now installed in

C:\Program Files\Android\Android Studio1

previously it was

C:\Program Files\Android\Android Studio

Any help appreciated.

Android studio version:

Android Studio Bumblebee | 2021.1.1 Patch 1
Build #AI-211.7628.21.2111.8139111, built on February 2, 2022
Runtime version: 11.0.11+9-b60-7590822 amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 8
Non-Bundled Plugins: org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40)


C:\Program Files\Android\Android Studio
and rename
C:\Program Files\Android\Android Studio1
C:\Program Files\Android\Android Studio
should solve the problem.

Answered By – mehdi laghrissi

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published