# Android signing fail because keystore not found in the specified path

**URL:** <https://discuss.bitrise.io/t/android-signing-fail-because-keystore-not-found-in-the-specified-path/5394>\
**Category:** Builds\
**Tags:** android, build-config\
**Created:** [June 12, 2018, 7:06pm UTC](https://discuss.bitrise.io/t/android-signing-fail-because-keystore-not-found-in-the-specified-path/5394 "2018-06-12T19:06:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yallam08](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/yallam08/32/1558_2.png) [@yallam08](https://discuss.bitrise.io/u/yallam08)\
**Post date:** [June 12, 2018, 7:06pm UTC](https://discuss.bitrise.io/t/android-signing-fail-because-keystore-not-found-in-the-specified-path/5394/1 "2018-06-12T19:06:26Z")

</div>

I want to sign my apk in the **Gradle Runner** step in order to publish it to Crashlytics. I uploaded my **.jks** file to the **Code Signing** section in the **Workflow** editor.

My signingConfig is:

> signingConfigs {  
> mySigningConfig{  
> keyAlias ‘[HARDCODED\_STRING]’  
> keyPassword ‘[HARDCODED\_STRING]’  
> storeFile file(System.getenv(“HOME”) + “/keystores/mysigningfile.jks”)  
> storePassword ‘[HARDCODED\_STRING]’  
> }  
> }

But the build fails with this message:

 ![Captureeee](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/1/106443402e90e780f97a0c2d4395728e41bbf336.PNG)

What i’m doing wrong?  
How can i refer inside my build.gradle to the .jks file i uploaded in the Code Signing section?!

---

<div class="post-metadata">

**Author:** ![tamaspapik](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/tamaspapik/32/251_2.png) [@tamaspapik](https://discuss.bitrise.io/u/tamaspapik)\
**Post date:** [June 13, 2018, 9:20am UTC](https://discuss.bitrise.io/t/android-signing-fail-because-keystore-not-found-in-the-specified-path/5394/2 "2018-06-13T09:20:08Z")

</div>

Hey @yallam08!

Did you download your keystore to the same location?

[https://devcenter.bitrise.io/android/code-signing/#download-your-keystore-from-generic-file-storage](https://devcenter.bitrise.io/android/code-signing/#download-your-keystore-from-generic-file-storage)

Regarding to the docs above, you will need a file downloader step with `- source: $BITRISEIO_ANDROID_KEYSTORE_URL` and the `- destination: "$HOME/keystores/mysigningfile.jks"`

Please try that if not already.

---

<div class="post-metadata">

**Author:** ![yallam08](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/yallam08/32/1558_2.png) [@yallam08](https://discuss.bitrise.io/u/yallam08)\
**Post date:** [June 13, 2018, 11:19am UTC](https://discuss.bitrise.io/t/android-signing-fail-because-keystore-not-found-in-the-specified-path/5394/3 "2018-06-13T11:19:20Z")

</div>

Thank you so much, this solved my problem. The docs are not so clear though, not mentioned that this step must be done first.

---

<div class="post-metadata">

**Author:** ![tamaspapik](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/tamaspapik/32/251_2.png) [@tamaspapik](https://discuss.bitrise.io/u/tamaspapik)\
**Post date:** [June 13, 2018, 12:34pm UTC](https://discuss.bitrise.io/t/android-signing-fail-because-keystore-not-found-in-the-specified-path/5394/4 "2018-06-13T12:34:24Z")

</div>

Thanks for the info! Happy Building! 🚀🙂

---

<div class="post-metadata">

**Author:** ![BirmacherAkos](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/birmacherakos/32/1319_2.png) [@BirmacherAkos](https://discuss.bitrise.io/u/BirmacherAkos)\
**Post date:** [June 18, 2018, 6:06am UTC](https://discuss.bitrise.io/t/android-signing-fail-because-keystore-not-found-in-the-specified-path/5394/5 "2018-06-18T06:06:58Z")

</div>

Hi!

I’ll be closing this thread, but feel free to ping us / create a new #issues:build-issues report any time if you have an issue or if you have any questions! 😉  
Happy Building! 😊

---

<div class="post-metadata">

**Author:** ![BirmacherAkos](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/birmacherakos/32/1319_2.png) [@BirmacherAkos](https://discuss.bitrise.io/u/BirmacherAkos)\
**Post date:** [June 18, 2018, 6:07am UTC](https://discuss.bitrise.io/t/android-signing-fail-because-keystore-not-found-in-the-specified-path/5394/6 "2018-06-18T06:07:05Z")

</div>


