I am trying to create two different Android builds (APK), by running the Gradle task on two different flavors.
For some reasons it creates 3 APKs, one with a timestamp.
Note that I am trying to trigger two Gradle tasks specific to 2 specific variants, which I couldn’t get via the more generic gradle tasks available (I would get useless builds).
It looks like something goes wrong during the copy of files.
............ Move apk files... find "." "-name" "*.apk" "!" "-name" "*-unaligned.apk" copy ./app/build/outputs/apk/app-back-generic-development-debug.apk to /bitrise/deploy/app-back-generic-development-debug.apk The apk path is now available in the Environment Variable: $BITRISE_APK_PATH (value: /bitrise/deploy/app-back-generic-development-debug.apk) ............
............ Move apk files... find "." "-name" "*.apk" "!" "-name" "*-unaligned.apk" copy ./app/build/outputs/apk/app-knee-generic-development-debug.apk to /bitrise/deploy/app-knee-generic-development-debug.apk 1 attempt failed: file already exists at: /bitrise/deploy/app-back-generic-development-debug.apk Retrying... copy ./app/build/outputs/apk/app-back-generic-development-debug.apk to /bitrise/deploy/app-back-generic-development-debug20170118145054.apk The apk path is now available in the Environment Variable: $BITRISE_APK_PATH (value: /bitrise/deploy/app-back-generic-development-debug20170118145054.apk) ............
Can we prevent this unnecessary APK to be created?
Maybe it’s similar to this issue: Support for multiple apk in android workflows