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.

Android Studio (IDE) not launching anymore on latest version

See original GitHub issue

What happened?

$ cd project
$ quasar build -m capacitor -T android --ide

What did you expect to happen?

Launch Android Studio IDE

Reproduction URL

https://codepen.io/rstoenescu/pen/xxEvBLR

How to reproduce?

  1. Install Android Studio 2021.1.1.21-1
  2. Run quasar build -m capacitor -T android --ide
  3. Nothing happens

Flavour

Quasar CLI (@quasar/cli | @quasar/app)

Areas

Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app)

Platforms/Browsers

Android, Other

Quasar info output

Operating System - Linux(5.16.5-zen1-1-zen) - linux/x64
NodeJs - 17.3.0

Global packages
  NPM - 8.4.1
  yarn - 1.22.17
  @quasar/cli - 1.2.2
  @quasar/icongenie - Not installed
  cordova - Not installed

Important local packages
  quasar - 2.5.3 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
  @quasar/app - 3.3.2 -- Quasar Framework local CLI
  @quasar/extras - 1.12.5 -- Quasar Framework fonts, icons and animations
  eslint-plugin-quasar - Not installed
  vue - 3.2.29 -- The progressive JavaScript framework for building modern web UI.
  vue-router - 4.0.12
  vuex - Not installed
  electron - Not installed
  electron-packager - Not installed
  electron-builder - Not installed
  @babel/core - 7.16.12 -- Babel compiler core.
  webpack - 5.67.0 -- Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
  webpack-dev-server - 4.7.3 -- Serves a webpack app. Updates the browser on changes.
  workbox-webpack-plugin - 6.4.2 -- A plugin for your Webpack build process, helping you generate a manifest of local files that workbox-sw should precache.
  register-service-worker - 1.7.2 -- Script for registering service worker, with hooks
  typescript - 4.5.5 -- TypeScript is a language for application scale JavaScript development
  @capacitor/core - 3.4.0 -- Capacitor: Cross-platform apps with JavaScript and the web
  @capacitor/cli - 3.4.0 -- Capacitor: Cross-platform apps with JavaScript and the web
  @capacitor/android - 3.4.0 -- Capacitor: Cross-platform apps with JavaScript and the web
  @capacitor/ios - Not installed

Quasar App Extensions
  *None installed*

Relevant log output

No response

Additional context

export ANDROID_HOME="$HOME/.android/sdk"
export ANDROID_SDK_ROOT="$HOME/.android/sdk"
export PATH=$PATH:$ANDROID_SDK_ROOT/tools; PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
Teo27commented, Feb 10, 2022

Ok, I found the exact issue. I debugged a bit and saw that both the target folder and studio path are correct for me. The issue is with the “open” library and specifically this commit for quasar - https://github.com/quasarframework/quasar/commit/6b977a836f7d0c9a1279002b065f23ab99b52820

In the file @quasar/app/lib/helpers/open-ide.js

On lines 68-72 it is as follows:

open(folder, {
        app: studioPath,
        wait: false
      })

It should be like this due to breaking changes going from open@7.1.0 to open@8.4.0

open(folder, {
    app: {name: studioPath} ,
    wait: false
  })

The missing part is that app is an object requiring name attribute. That can be either the binary name or the path to the binary. In our case, this would be the ANDROID_STUDIO_PATH

@rstoenescu

1reaction
rstoenescucommented, Feb 10, 2022

@Teo27 Why not PR it? It helps as we have so much on our plate to handle and we love to see community contributions!

Fix will be available in “@quasar/app” v3.3.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

Known issues with Android Studio and Android Gradle Plugin
To fix this issue, upgrade your Android 11 emulator to version 9 or higher by navigating to Tools > SDK Manager. In the...
Read more >
Android studio isn't opening on Windows - Stack Overflow
Select right click on the android studio icon, and open some recent project. · A new window will open with the recent project...
Read more >
What should I do if Android Studio is not opening? - Quora
1. Check whether auto update is enabled in your Play Store and see if the Play Store is updating your apps in the...
Read more >
Google Android Studio is not launching? Here's the fix!
For instance, after the successful installation, if you find the application doesn't seem to respond or open at all, then the reason might...
Read more >
How to Install Android Studio IDE & SDK and Get Started with ...
Uninstall older version(s) of "Android Studio" and "Android SDK", if any. The installation and many operations take a LONG time to complete. Do...
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