question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

quasar dev -m capacitor command fails to open android studio on windows

See original GitHub issue

Describe the bug When running the command quasar dev -m capacitor -T android on windows, Android studio is expected to open but fails due to an unescaped path with special characters. Space character in the Program Files part when using the default path.

const studioPath = 'C:\\Program Files\\Android\\Android Studio\\bin\\studio64.exe'

Codepen/jsFiddle/Codesandbox (required)

To Reproduce Steps to reproduce the behavior:

  1. run quasar dev -m capacitor -T android on windows with android studio installed in default path
  2. See error

Expected behavior I expect Android studio to open the capacitor project.

Screenshots quasar-open-ide-error

Platform (please complete the following information): OS: Windows 10 Node: v10.13.0 NPM: 6.4.1 Yarn: 1.12.3 Browsers: NA iOS: NA Android: NA Electron: NA

Additional context PR created: https://github.com/quasarframework/quasar/pull/5557

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
JayteeNZcommented, Apr 6, 2020

Hi guys,

I seem to be having this issue on the latest release of quasar.

It was working fine, then all of a sudden, it couldn’t open Android Studio (along with some IDE errors when opening Android Studio manually). No matter what I did, studio would not open.

I’ve just re-installed Windows on my PC, in hopes that it was just something gone wrong somewhere, but again, have an issue opening Android Studio on a fresh install of everything.

Specs::

  • Windows 10 Build 1903
  • Capacitor
  • Pkg quasar… v1.9.13
  • Pkg @quasar/app… v1.6.1

UPDATE:

Modifying open-ide and removing the double quotes from the studioPath, when running open() solved it. But that’s not ideal.

3reactions
rstoenescucommented, Nov 18, 2019

New PR will be included in “@quasar/app” v1.2.5.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"quasar dev -m capacitor -T android" not launching ... - GitHub
When I attempt to run the command "quasar dev -m capacitor -T android" on windows, it opens the windows explorer folder for the...
Read more >
Android Studio not starting when building capacitor app on ...
When I run the “quasar dev -m capacitor -T android” command, it only opens the windows explorer to the path. It does not...
Read more >
Capacitor Troubleshooting and Tips - Quasar Framework
In Android Studio (if you open it on /src-capacitor/android ), you will be greeted with a message recommending to upgrade the Gradle version....
Read more >
On MacOS, launching Quasar-Framework/Capacitor dev ...
Nothing, not even an error message. What is wrong? What shoud I do? Edit : Command build works for Android and ios quasar...
Read more >
Experimentation with the Quasar framework - Yoctopuce
The first thing to do is to install Quasar with the npm command "npm i -g ... quasar dev -m cordova -T android...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found