Launching Android Studio from WSL2 #4848
Unanswered
leo-petrucci
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Bump. I also want to know how to use capacitor in WSL. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been banging my head against this wall all morning and I'm completely lost.
Is there any way to launch a capacitor project in WSL to the Windows installation of Android studio?
There used to be an option that allowed this, but all the threads I've found have been closed with the message:
I tried setting
CAPACITOR_ANDROID_STUDIO_PATH
to/mnt/c/Program Files/Android/Android Studio/bin/studio64.exe
, which if run in WSL opens my project, but doesn't seem to do anything after runningnpx cap open android
.I've tried starting Android Studio in a virtual window manager from WSL, but it doesn't recognise any devices (not even real ones.
I've tried starting Windows Android Studio, but it won't load files from WSL as they're network mounted.
Has anyone been able to find a solution to this? Developing Node on Windows is an absolute pain and I'd rather keep it all on WSL2.
Beta Was this translation helpful? Give feedback.
All reactions