You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2016/09/09 21:33:20 UTC

[jira] [Comment Edited] (CB-11833) versionCode is no longer altered by build.gradle, breaking version continuity

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

Joe Bowser edited comment on CB-11833 at 9/9/16 9:33 PM:
---------------------------------------------------------

We are not reverting this, especially since so many people asked for the version code to be removed.  Please use the androidVersionCode preference in your Config.xml to set your version code.

More information on this can be found in the documentation: 
https://cordova.apache.org/docs/en/dev/config_ref/index.html


was (Author: bowserj):
We are not reverting this.  Please use the androidVersionCode preference in your Config.xml to set your version code.

More information on this can be found in the documentation: 
https://cordova.apache.org/docs/en/dev/config_ref/index.html

> versionCode is no longer altered by build.gradle, breaking version continuity
> -----------------------------------------------------------------------------
>
>                 Key: CB-11833
>                 URL: https://issues.apache.org/jira/browse/CB-11833
>             Project: Apache Cordova
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Android
>    Affects Versions: 5.2.1
>         Environment: Android 6.0/Mac OS X
>            Reporter: Stephen Warren
>              Labels: easyfix
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> Previous versions of the build.gradle file contained this line in the defaultConfig:
> versionCode cdvVersionCode ?: Integer.parseInt("" + privateHelpers.extractIntFromManifest("versionCode") + "0")
> The new Cordova version leaves out the '+ "0" ', which is breaking the continuity of version numbers in our application. When we attempt to install a new version without the edited versionCode,we receive this error:
> 09-09 12:20:39.795 1248-1274/? W/PackageManager: Downgrade detected: Update version code 30400 is older than current 303010
> 09-09 12:20:39.919 21984-21984/? D/InstallAppProgress: Installation error code: -25
> New builds will inevitably be "older" than the previously built version numbers with the '0' appended to the end.  Why this has not been reported until now, I don't understand.  For now I fix this by editing the build.gradle file back to the way it was before this Cordova release.
> Note: this is actually affecting version 5.2.2 on Android, but I was unable to choose 5.2.2 from the pulldown menu.



--
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