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

app/build.gradle file after using plugin:
