quasarframework / quasar

Quasar Framework - Build high-performance VueJS user interfaces in record time
https://quasar.dev
MIT License
25.9k stars 3.51k forks source link

Android studio won't launch with quasar dev -m capacitor -T android #13423

Closed FrenchGithubUser closed 2 years ago

FrenchGithubUser commented 2 years ago

What happened?

quasar dev -m capacitor -T android and quasar dev -m capacitor -T android --ide output App • ⚠️ No external IP detected. Can't run without one. Manually specify one?

The same thing happens with cordova mode

What did you expect to happen?

Android studio opening and being able to launch the app in an emulator or a connected device

Reproduction URL

https://none.none

How to reproduce?

Run quasar dev -m capacitor -T android

Flavour

Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)

Areas

Capacitor Mode

Platforms/Browsers

No response

Quasar info output

Operating System - Linux(5.17.6-artix1-1) - linux/x64
NodeJs - 18.1.0

Global packages
  NPM - 8.5.5
  yarn - 1.22.18
  @quasar/cli - 1.3.2
  @quasar/icongenie - Not installed
  cordova - 11.0.0

Important local packages
  quasar - 2.6.6 -- Build high-performance VueJS user interfaces (SPA, PWA, SSR, Mobile and Desktop) in record time
  @quasar/app - 3.3.3 -- Quasar Framework local CLI
  @quasar/extras - 1.13.6 -- Quasar Framework fonts, icons and animations
  eslint-plugin-quasar - Not installed
  vue - 3.2.33 -- The progressive JavaScript framework for building modern web UI.
  vue-router - 4.0.15
  vuex - Not installed
  electron - 12.2.3 -- Build cross platform desktop apps with JavaScript, HTML, and CSS
  electron-packager - Not installed
  electron-builder - Not installed
  @babel/core - 7.17.10 -- Babel compiler core.
  webpack - 5.72.1 -- 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.4 -- 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 - 2.5.0 -- Capacitor: cross-platform mobile apps with the web
  @capacitor/cli - 2.5.0 -- Capacitor: Cross-platform apps with JavaScript and the web
  @capacitor/android - 3.4.1 -- Capacitor: Cross-platform apps with JavaScript and the web
  @capacitor/ios - Not installed

Quasar App Extensions
  *None installed*

Networking
  Host - artix

Relevant log output

No response

Additional context

I can launch the app on my phone from android studio but I get a white screen asking me to launch the app with quasar dev, the phone is pingabble from the computer and vice-versa, adb devices finds the phone.

I think that the issue is with quasar not finding how to open android studio as the command should open android studio with or without a phone attached.

github-actions[bot] commented 2 years ago

Hi @ThomasTraineau! 👋

It looks like you provided an invalid or unsupported reproduction URL. Do not use any service other than Codepen, jsFiddle, Codesandbox, and GitHub. Make sure the URL you provided is correct and reachable. You can test it by visiting it in a private tab, another device, etc. Please edit your original post above and provide a valid reproduction URL as explained.

Without a proper reproduction, your issue will have to get closed.

Thank you for your collaboration. 👏

FrenchGithubUser commented 2 years ago

I specified the private ip address of my computer with -H 192.168.1.222 and it now works. But I have no idea why I need to specify it while it was working without it before

modemb commented 2 years ago

I specified the private ip address of my computer with -H 192.168.1.222 and it now works. But I have no idea why I need to specify it while it was working without it before

How did you do that, can you please help?

FrenchGithubUser commented 2 years ago

quasar dev -H 192.168.xxx.xxx -m capacitor -T android

Aug 29, 2022, 10:52 by @.***:

I specified the private ip address of my computer with >> -H 192.168.1.222>> and it now works. But I have no idea why I need to specify it while it was working without it before

How did you do that, can you please help?

— Reply to this email directly, > view it on GitHub https://github.com/quasarframework/quasar/issues/13423#issuecomment-1229972856> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/ARCZF23T7W6CMIWEWTDITTLV3R26DANCNFSM5V5IPVUA> . You are receiving this because you modified the open/close state.> Message ID: > <quasarframework/quasar/issues/13423/1229972856> @> github> .> com>

modemb commented 2 years ago

quasar dev -H 192.168.xxx.xxx -m capacitor -T android Aug 29, 2022, 10:52 by @.***:

I specified the private ip address of my computer with >> -H 192.168.1.222>> and it now works. But I have no idea why I need to specify it while it was working without it before > > How did you do that, can you please help? — Reply to this email directly, > view it on GitHub <#13423 (comment)>> , or > unsubscribe https://github.com/notifications/unsubscribe-auth/ARCZF23T7W6CMIWEWTDITTLV3R26DANCNFSM5V5IPVUA> . You are receiving this because you modified the open/close state.> Message ID: > <quasarframework/quasar/issues/13423/1229972856> @> github> .> com>

Thank you so much, it actually works, but what about quasar build -m capacitor -T android

it always gives these errors below, did you find any solution on that ?

App • ⚠️ Gradle build failed! App • ⚠️ As an alternative, you can use the "--ide" pa ram and build from the IDE.

FrenchGithubUser commented 2 years ago

I need more information to help you debug. However, this is not relevant to the issue anymore. Please open a github discussion or a thread on another forum.

modemb commented 2 years ago

I need more information to help you debug. However, this is not relevant to the issue anymore. Please open a github discussion or a thread on another forum. I did

https://github.com/quasarframework/quasar/issues/14294#issuecomment-1231566937