Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70435

'linuxAndroidStudioPath' error when attempting 'npx cap open android' despite value correctly defined

$
0
0

@technosis wrote:

I have added the correct path to android studio in capacitor.config.json but npx cap open android still gives the following error:

[error] Unable to launch Android Studio. You must configure "linuxAndroidStudioPath" in your capacitor.config.json to point to the location of studio.sh, using JavaScript-escaped paths:
Example:
{
  "linuxAndroidStudioPath": "/usr/local/android-studio/bin/studio.sh"
}

I’m running on wsl2 ubuntu-18.04. I have a functioning android studio installation, with all the proper paths set in .bashrc to the sdk and studio.sh. I am able to open the project manually without errors but the npx command does not work.

Thanks in advance!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>