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.

Error 'App not Installed' use --packageType=apk flag

See original GitHub issue

Bug Report

Problem

If use cordova build android --release -- --packageType=apk then an apk file is generated. (when cordova-android is 10.x)

I get the error message “App not installed” when I try to install the .apk. It runs fine (download the APK from the play store).

What is expected to happen?

The --packageType=apk flag should control an apk file is generated. I get the error message “App not installed”.

What does actually happen?

The --packageType=apk flag should control an apk file is generated. I need to test a release build.

Information

Command or Code

cordova build android --release -- --packageType=apk

Environment, Platform, Device

Only happens when cordova-android is version 10 or higher

Version information

Cordova CLI: 10.0.0 Cordova Platforms: android 10.1.0 Android SDK Tools : 30.0.3 NodeJS : v14.16.1 npm : 6.14.12 OS : Window

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
breautekcommented, Mar 24, 2022

OS : Window

On windows, particularly with powershell, instead of

cordova build android --release -- --packageType=apk

You need to wrap the intermediate -- in quotations, like so:

cordova build android --release "--" --packageType=apk

Closing this issue cause I don’t believe this is an actual bug.

1reaction
mkurzweilcommented, Apr 28, 2022

works also for mac user: cordova build android --release "--" --packageType=apk

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot install signed apk to device manually, got error ...
The reason behind this issue is, there is already an application with the same package name in the phone, but you cannot find...
Read more >
Troubleshoot known issues with Android Emulator
This page lists known issues, workarounds, and troubleshooting tips for the Android Emulator. If you encounter an issue not listed here or ...
Read more >
How to Fix Android App Not Installed Error
When you get the error message that says app not installed, it is mainly caused by the above glitches on the Android system....
Read more >
How to install some APK files which shows 'app not ...
When the Package Manager shows the error “App Not Installed”. It basically means either the .apk file is damaged or the .apk file...
Read more >
Android Emulator Troubleshooting - Xamarin
If you see an error about a failure to install the APK on the emulator or a failure to run the Android Debug...
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