Reputation: 7245
I'm trying to install and test a release version of my app directly on my device using cordova.
Though I signed the apk, cordova tries to install the unsigned version to the device. How can I test the release version via cordova?
When running
cordova run --release --buildConfig="build.json"
I get the following result:
[...]
BUILD SUCCESSFUL
Total time: 15.086 secs
Built the following apk(s):
C:/myProject/platforms/android/build/outputs/apk/android-release-unsigned.apk
C:/myProject/platforms/android/build/outputs/apk/android-release.apk
Using apk: C:/myProject/platforms/android/build/outputs/apk/android-release-unsigned.apk
Error: Failed to install apk to device: pkg: /data/local/tmp/android-release-unsigned.apk
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
Upvotes: 4
Views: 2450
Reputation: 1512
This issue has been fixed but it's not released yet.
You can try the development version of cordova-android for now:
cordova platform add https://github.com/apache/cordova-android
Upvotes: 2