fastlane-plugin-versioning_android icon indicating copy to clipboard operation
fastlane-plugin-versioning_android copied to clipboard

android_set_version_code not work?

Open semionenko opened this issue 6 years ago • 3 comments
trafficstars

Before creating an apk file, I call android_set_version_code & android_set_version_name, but it seems that only android_set_version_name works. Before and after creating apk, I use to check android_get_version_code, but then I check the output.json file, in which buildCode: 1, and buildName: "8539".

5

app/build.gradle file after using plugin: 4

semionenko avatar Jan 17 '19 04:01 semionenko

You can close this issue. I found problem. If in build.gradle file exist text "versionCode" command android_set_version_code not work.

semionenko avatar Jan 17 '19 05:01 semionenko

android_set_version_code(version_code: 1690964015)

I'm getting this error image

rjuevesano avatar Aug 02 '23 08:08 rjuevesano

(FIXED) by adding gradle_file :)

android_set_version_code(
    version_code: ENV["ANDROID_VERSION_CODE"],
    gradle_file: './android/app/build.gradle'
)

rjuevesano avatar Aug 02 '23 08:08 rjuevesano