ulizama/TiFastlane

tifast playsend ends in apkUpgradeVersionConflict: APK specifies a version code that has already been used.

chauf opened this issue · 1 comments

chauf commented

When I call tifast playsend --track alpha for my project the Supply step fails with the message:

[!] Google Api Error: apkUpgradeVersionConflict: APK specifies a version code that has already been used.

Currently there is one Artifact for this App in my google play store in track alpha with version code 1 and version name 1.0.15. I increased the Version in tiapp.xml to 1.0.16.

Here ist the full log and stack from the beginning of phase supply:

Starting Supply
/Library/Ruby/Gems/2.0.0/gems/fastimage-2.1.0/lib/fastimage.rb:67: warning: already initialized constant URI::DEFAUL
T_PARSER
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/uri/common.rb:545: warning: previous defin
ition of DEFAULT_PARSER was here

+-------------------------+-----------------------------+
| Summary for supply 2.37.0 |
+-------------------------+-----------------------------+
| json_key | ../../../GooglePlayKey.json |
| package_name | de.sabio.sabioapp |
| track | alpha |
| apk | ../../../dist/sabio-app.apk |
| rollout | 0.1 |
| metadata_path | ./metadata |
| skip_upload_apk | false |
| skip_upload_metadata | false |
| skip_upload_images | false |
| skip_upload_screenshots | false |
| validate_only | false |
+-------------------------+-----------------------------+

[09:32:29]: Preparing to upload for language 'en-US'...
[09:32:29]: Uploading image file ./metadata/en-US/images/icon.png...
[09:32:32]: Uploading screenshot ./metadata/en-US/images/phoneScreenshots/6_1.Simulator Screen Shot 21.07.20
16, 15.42.00.png...
[09:32:34]: Uploading screenshot ./metadata/en-US/images/phoneScreenshots/6_2.Simulator Screen Shot 21.07.20
16, 15.42.13.png...
[09:32:36]: Uploading screenshot ./metadata/en-US/images/phoneScreenshots/6_3.Simulator Screen Shot 21.07.20
16, 15.42.17.png...
[09:32:38]: Uploading screenshot ./metadata/en-US/images/phoneScreenshots/6_4.Simulator Screen Shot 21.07.2016, 15.42.04.png...
[09:32:41]: Uploading screenshot ./metadata/en-US/images/phoneScreenshots/6_5.Simulator Screen Shot 21.07.2016, 15.42.09.png...
[09:32:43]: Updating changelog for code version '1' and language 'en-US'...
[09:32:43]: Preparing apk at path '../../../dist/sabio-app.apk' for upload...

[!] Google Api Error: apkUpgradeVersionConflict: APK specifies a version code that has already been used.

Supply Done

There is a difference between the app version and the APK version. In Google the app version:
<version>1.0.16</version>

it's only used for display purposes.

The one that controls the version of the APK build is set by the android manifest, for example:
<manifest android:versionCode="2" android:versionName="1.0.16">

The problem is that you don't have a versionCode so it's using 1, which already exists.

More info: http://www.appcelerator.com/blog/2011/08/versioning-your-android-app/