# Can't create a release apk with keystore file

**URL:** <https://discuss.bitrise.io/t/cant-create-a-release-apk-with-keystore-file/4086>\
**Category:** Builds\
**Tags:** android\
**Created:** [February 8, 2018, 11:41am UTC](https://discuss.bitrise.io/t/cant-create-a-release-apk-with-keystore-file/4086 "2018-02-08T11:41:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [February 9, 2018, 7:33pm UTC](https://discuss.bitrise.io/t/cant-create-a-release-apk-with-keystore-file/4086/4 "2018-02-09T19:33:38Z")

</div>

From the log of the build:

```auto
Caused by: java.lang.IllegalArgumentException: Keystore file not set for signing config release

```

Are you sure that you reverted the `build.gradle` changes (the ones mentioned here [http://devcenter.bitrise.io/android/code-signing/#1-specify-code-sign-configuration-in-your-project](http://devcenter.bitrise.io/android/code-signing/#1-specify-code-sign-configuration-in-your-project) )? It seems your `build.gradle` is still configured to use a keystore file.

I’d suggest you to remove the `signingConfigs` section from there (e.g. [https://github.com/bitrise-samples/sample-apps-android-sdk22/blob/master/app/build.gradle](https://github.com/bitrise-samples/sample-apps-android-sdk22/blob/master/app/build.gradle)); that should allow gradle to generate an unsigned release APK, which then can be signed by the `Sign APK` step.

Let me know how it goes or if you’d have any questions! 😉

---

_[View the full topic](https://discuss.bitrise.io/t/cant-create-a-release-apk-with-keystore-file/4086)._
