Android Build Failed (File not found)

android

#1

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!


#2

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


#3

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


#4