File already exists when building aab

#1

Bitrise Build Issue Report template

Description of the issue

I know this problem related this: File already exists error when building aab but that issue closed with no solution. So…
1 - When I build with gradle run step config: clean bundleProductRelease, File already exists error occurred. The log is:

Move APK and AAB files…
copy presentation/build/intermediates/intermediary_bundle/productRelease/presentation-product-release.aab to /bitrise/deploy/presentation-product-release.aab
1 attempt failed:
file already exists at: /bitrise/deploy/presentation-product-release.aab
Retrying…
copy presentation/build/outputs/bundle/productRelease/presentation-product-release.aab to /bitrise/deploy/presentation-product-release20200720035725.aab
The app path is now available in the Environment Variable: $BITRISE_AAB_PATH (value: /bitrise/deploy/presentation-product-release20200720035725.aab)

2 - Besides, Deploy-to-Bitrise.io step added some universal.apk files. The log:

Uploading apk file: /tmp/aab-bundle839769686/presentation-product-universal-release.apk
Uploading apk file: /tmp/aab-bundle572904440/presentation-product-universal-release20200720035725.apk

3 - So, finally the deploy folder contains so many files:

presentation-product-universal-release.apk
presentation-product-universal-release20200720035725.apk
presentation-product-release.aab
presentation-product-release20200720035725.aab
mapping.txt

It’s so annoying. Why the deploy folder just simple like this:

presentation-product-release.aab
mapping.txt

Please help!

Environment:

Gradle Runner v1.9.3
Deploy to Bitrise.io v1.9.7

Reproducibility

  • _Does a “Rebuild” help? NO
  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : NO
  • Does the issue happen sporadically, or every time? : every time
  • Does upgrading the build Step to the latest version help? : NO
  • When did the issue start? :
0 Likes

#2

It is also tracked here: https://github.com/bitrise-steplib/steps-gradle-runner/issues/72

0 Likes