cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikhil Khandelwal (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-10600) 'cordova run android --release' does not use signed and zip-aligned version of APK
Date Mon, 22 Feb 2016 18:57:18 GMT

    [ https://issues.apache.org/jira/browse/CB-10600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15157477#comment-15157477
] 

Nikhil Khandelwal edited comment on CB-10600 at 2/22/16 6:56 PM:
-----------------------------------------------------------------

What version of cordova android are you using? I believe this was fixed. You can use cordova
platform ls to find out.


was (Author: nikhilkh):
What version of cordova android are you using? I believe this was fixed.

> 'cordova run android --release' does not use signed and zip-aligned version of APK
> ----------------------------------------------------------------------------------
>
>                 Key: CB-10600
>                 URL: https://issues.apache.org/jira/browse/CB-10600
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>         Environment: Tested on Windows 8.1 with Cordova CLI 6.0.0 (and Ionic CLI 1.7.14)
>            Reporter: Eric Gopak
>              Labels: easyfix
>
> Running command `cordova run android --release` builds the app successfully, both unsigned
and signed/zip-aligned versions. However, it then tries to use the unsigned version of the
APK. Here are the last lines of the output:
> .....
> BUILD SUCCESSFUL
> Total time: 31.35 secs
> Built the following apk(s):
>         C:/XXXXX/platforms/android/build/outputs/apk/android-armv7-release-unsigned.apk
>         C:/XXXXX/platforms/android/build/outputs/apk/android-armv7-release.apk
> Using apk: C:/XXXXX/platforms/android/build/outputs/apk/android-armv7-release-unsigned.apk
> ERROR running one or more of the platforms: Failed to install apk to device: pkg: /data/local/tmp/android-armv7-release-unsigned.apk
> Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
> You may not have the required environment or OS to run this project
> It has worked before I updated Cordova with 'npm install -g cordova'.
> I specify signing properties in a file 'release-signing.properties', which I copy to
platforms/android/ folder. During the run/build I get prompted for the password, just as it
has always been.
> I believe it is just a problem of choosing the wrong APK from the list of built APKs
(Cordova probably chooses the one that comes earlier lexicographically)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message