# Android Build Failed (File not found)

**URL:** <https://discuss.circleci.com/t/android-build-failed-file-not-found/5474>\
**Category:** Build Environment\
**Tags:** android\
**Created:** [August 2, 2016, 2:56am UTC](https://discuss.circleci.com/t/android-build-failed-file-not-found/5474 "2016-08-02T02:56:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jzarsuelo](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@jzarsuelo](https://discuss.circleci.com/u/jzarsuelo)\
**Post date:** [August 2, 2016, 2:56am UTC](https://discuss.circleci.com/t/android-build-failed-file-not-found/5474/1 "2016-08-02T02:56:56Z")

</div>

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](https://circleci.com/docs/missing-file/), 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!

---

<div class="post-metadata">

**Author:** ![jzarsuelo](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@jzarsuelo](https://discuss.circleci.com/u/jzarsuelo)\
**Post date:** [August 2, 2016, 11:53pm UTC](https://discuss.circleci.com/t/android-build-failed-file-not-found/5474/2 "2016-08-02T23:53:49Z")

</div>

Fixed it.

1. Create the “[local.properties.ci](http://local.properties.ci)” inthe same directory of “local.properties”, then add it to Git.

2. Add the code below in circle.yml:

---

<div class="post-metadata">

**Author:** ![albertovelazmoliner](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/albertovelazmoliner/32/15328_2.png) [@albertovelazmoliner](https://discuss.circleci.com/u/albertovelazmoliner)\
**Post date:** [August 28, 2017, 12:32pm UTC](https://discuss.circleci.com/t/android-build-failed-file-not-found/5474/3 "2017-08-28T12:32:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/circleci/original/3X/5/1/511608acda8e85906e15909b57bd0a46c1dbe291.png) [@system](https://discuss.circleci.com/u/system)\
**Post date:** [June 18, 2018, 11:38am UTC](https://discuss.circleci.com/t/android-build-failed-file-not-found/5474/4 "2018-06-18T11:38:34Z")

</div>


