$quasar dev --mode cordova -T android generate app blank



  • Hello guys,

    I am running the command: $quasar dev --mode cordova -T android

    So my app is generated, however when installing the APP on an android emulator it is only displaying a blank page.

    What is wrong?

    BUILD SUCCESSFUL in 1m 5s
    47 actionable tasks: 4 executed, 43 up-to-date
    Built the following apk(s):
    C:\Users\marconi.barroso\Desktop\APP\AppTeste\src-cordova\platforms\android\app\build\outputs\apk\debug\app-debug.apk
    ANDROID_HOME=C:\Users\marconi.barroso\AppData\Local\Android\sdk
    JAVA_HOME=C:\Program Files\java\jdk1.8.0_172
    No target specified and no devices found, deploying to emulator
    (node:19304) UnhandledPromiseRejectionWarning: CordovaError: No emulator images (avds) found.

    1. Download desired System Image by running: “C:\Users\marconi.barroso\AppData\Local\Android\sdk\tools\android.bat” sdk

    2. Create an AVD by running: “C:\Users\marconi.barroso\AppData\Local\Android\sdk\tools\android.bat” avd
      HINT: For a faster emulator, use an Intel System Image and install the HAXM device driver

      at C:\Users\marconi.barroso\Desktop\APP\AppTeste\src-cordova\platforms\android\cordova\lib\emulator.js:288:29
      at _fulfilled (C:\Users\marconi.barroso\Desktop\APP\AppTeste\src-cordova\platforms\android\cordova\node_modules\q\q.js:854:54)
      at self.promiseDispatch.done (C:\Users\marconi.barroso\Desktop\APP\AppTeste\src-cordova\platforms\android\cordova\node_modules\q\q.js:883:30)
      at Promise.promise.promiseDispatch (C:\Users\marconi.barroso\Desktop\APP\AppTeste\src-cordova\platforms\android\cordova\node_modules\q\q.js:816:13)
      at C:\Users\marconi.barroso\Desktop\APP\AppTeste\src-cordova\platforms\android\cordova\node_modules\q\q.js:624:44
      at runSingle (C:\Users\marconi.barroso\Desktop\APP\AppTeste\src-cordova\platforms\android\cordova\node_modules\q\q.js:137:13)
      at flush (C:\Users\marconi.barroso\Desktop\APP\AppTeste\src-cordova\platforms\android\cordova\node_modules\q\q.js:125:13)
      at _combinedTickCallback (internal/process/next_tick.js:131:7)
      at process._tickCallback (internal/process/next_tick.js:180:9)
      (node:19304) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
      (node:19304) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.



  • The log reads:

    No target specified and no devices found, deploying to emulator
    
    CordovaError: No emulator images (avds) found.
    

    and goes on with:

    1. Download desired System Image by running…
    2. Create an AVD by running…

    Did you do these steps?



  • @pd76 hi.
    i have same problem but i have emulator and also i tried on my android phone but after all ways i have a blank white page on my screens.
    im on windows .



  • @koohsaran70
    You could:

    1. Check that your phone and your PC reside on the same network (eg 192.168.0.x)
    2. If you use a firewall/antivirus, allow traffic between PC <–> phone
    3. Attach a log viewer to your phone and check for error messages

    For 3. I use superlog (https://github.com/wangfei1975/superlog)



    1. My pc and my phone are on a common wifi network, is it enough?
      and is this network issue problematic on emulator too?
      2.i turned off my firewall and result same as past.
      3.i will use log then i’ll inform you
      thanks a lot
      do you develop on windows?


  • @koohsaran70 yes, for me it was enough; the emulator is running on your local machine, so sharing the same ip. I’m sorry, I work on Linux and have no experience on Windows, but I don’t think this is the point.

    Btw, in the log you should check/filter for cordova errors, where a Vue stacktrace should appear.

    I’m out of other ideas, hope someone will chip in.