Android Build Failed (File not found)

Hi, I’m encountering failed build since I placed the path of my keyStore to “local.properties” which is not tracked in Git, and build.gradle is referencing to get the keyStore from the said file. To handle this I followed this guide, but I still encounter the failed build.

Build failed due to:

/path/to/AndroidProject/local.properties (No such file or directory)

local.properties.ci please see the contents below (Added and pushed to Git)
checkout: post: - cp local.properties.ci local.properties

Any help would be appreciated.

Thanks!

Fixed it.

  1. Create the “local.properties.ci” inthe same directory of “local.properties”, then add it to Git.

  2. Add the code below in circle.yml:

    checkout: post: - cp local.properties.ci local.properties

1 Like

Thanks, but that is not working for me. It worked for CircleCi 1.0, not for CircleCi 2.0