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 Cordova Mode Doesn't Build APK Properly

See original GitHub issue

Describe the bug I have an existing v1 app that builds alright by running quasar build -m cordova -T android but suddenly, the build doesn’t seem to work at all. It’s just displaying the default placeholder.

This file will be auto-generated. Do not edit. Run “quasar dev” or “quasar build” with Cordova mode.

quasar dev -m cordova -T android works. It’s just in the actual building of the production app. It was working alright before, it must’ve broke by recent updates. But I have a habit of running quasar upgrade, I can’t pinpoint yet where it has gone haywire.

Codepen/jsFiddle/Codesandbox (required) https://codepen.quasar.dev. Issue persists on fresh install. quasar create test

To Reproduce Steps to reproduce the behavior:

  1. quasar create test
  2. Proceed with defaults
  3. quasar mode add cordova
  4. cd src-cordova
  5. cordova platform add android
  6. quasar build -m cordova -T android
  7. generate a keystore
  8. sign keystore
  9. install resulting apk to an android device
  10. See unwanted behavior

Expected behavior It should display default quasar template in mobile app form.

Screenshots image

Platform (please complete the following information): OS: Pop!_OS Node: 12.4.0 NPM: 6.9.0 Yarn: 1.21.1 Browsers: iOS: Android: 8.0.0 Electron:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
rstoenescucommented, Dec 20, 2019

Fixed in “@quasar/app” v1.4.3.

1reaction
resu511commented, Jun 18, 2020

Hello,

I am getting this error aswell on a newly installed rig. I tried to launch on my old one and the whole process is working, meaning the application loads correctly. I also precise that the version of my app are the same on both setups.

I’m not using an emulator but my own smartphone that is under Android 8.0.

About my two rigs here are the configuration:

  • Both have the same @quasar/app and quasar versions, resp. 1.5.5 and 1.9.1 [EDIT : After running an audit fix of npm’s modules @quasar/app has been updated to 1.9.6]
  • Both have the same JDK (8) installed, the one that’s linked in the “Preparation” page of the “Developing Cordova Apps” part
  • My old rig’s Gradle version is 5.6, and I tried on my new with 4.3 (the one linked in Quasar’s doc) and the latest (6.5) [EDIT : I also tried 5.6 on my new setup]
  • Just to make sure it wasn’t related to this I installed the same versions of the Android SDKs that I had on my previous setup on my new one :
    • Starting from Android 5.0 up to 9.0 for my old rig, and since new versions have come since then I also added them to my new setup.
  • My old computer is using an Intel CPU whereas my new one is with AMD. I had a problem with Android Studio about something needing to be done for emulation (Android Emulator Hypervisor Driver for AMD Processors) but since I’m not using emulation I ignored this step. The software launches normally and the installations of the SDKs are successful.
  • Regarding PATH variables, here is a screenshot of my new setup which has the same things as the old one except for :
    • Gradle version
    • tools and toolds\bin (absent on my old setup)

PATH_new_setup

The logs displayed in the console from “BUILD SUCCESSFUL in Xs” are also the same, the only difference is that while connected to my new computer my smartphone displays the blank page with the content OP described.

Not having deep knowledge about everything revolving around this I’m kind of at a loss of ideas to solve this… Thanks in advance for reading and any clue of the origin of this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't build apk for Android 12. Cordova - Stack Overflow
It looks like the plugin you are using is not compatible with Android SDK 31. Either change the build target to SDK 30, ......
Read more >
Android Platform Guide - Apache Cordova
This guide will help set up your development environment for building Cordova apps for Android devices and optionally use Android-specific command-line ...
Read more >
Ionic build for release not working,debug apk is working
I have problem working with release apk, build is working with without --release option. so i have tried totaly new ionic1 tab app...
Read more >
Migrate apps to Android 13
Migrate apps to Android 13 · Perform compatibility testing · Get the SDK, change targeting, build with new APIs · Test your Android...
Read more >
Android SDK Troubleshooting - Visual Studio App Center
Make sure you've integrated the SDK modules correctly. Make sure correct App Secret is included along with the start() method call. You can...
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