File already exists error

Hi,

Thanks for creating the report here!

If you’re referring to

That’s the expected behavior. If the file already exists at the target path, the step will append a timestamp to the filename, to prevent accidental overwrite of an existing APK.

Can we prevent this unnecessary APK to be created?

Absolutely!

  • You can either tweak your Gradle configs to not to generate that APK for the task you run (I guess you run the assemble gradle task, which generates both a Debug and a Release APK by default)
  • Or tweak/set the Gradle Runner step’s APK file include filter input. The default value is *.apk, to copy all generated APKs into the deploy directory, but you can change this to e.g. */app-knee-generic-development-debug.apk (based on your log) to only copy the app-knee-generic-development-debug.apk to the deploy directory.

If you’d have any questions, just let us know!

Happy Building! :slight_smile: