Error 'App not Installed' use --packageType=apk flag
See original GitHub issueBug 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:
- Created 2 years ago
- Reactions:2
- Comments:8 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
works also for mac user:
cordova build android --release "--" --packageType=apk