# Deployment issue to FastLane

**URL:** <https://discuss.bitrise.io/t/deployment-issue-to-fastlane/1265>\
**Category:** Builds\
**Tags:** fastlane, build-config\
**Created:** [March 24, 2017, 8:10pm UTC](https://discuss.bitrise.io/t/deployment-issue-to-fastlane/1265 "2017-03-24T20:10:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![uidzer0](https://avatars.discourse-cdn.com/v4/letter/u/a4c791/32.png) [@uidzer0](https://discuss.bitrise.io/u/uidzer0)\
**Post date:** [March 24, 2017, 8:10pm UTC](https://discuss.bitrise.io/t/deployment-issue-to-fastlane/1265/1 "2017-03-24T20:10:57Z")

</div>

I’m seeing this error in the logs:

> Could not find apk file at path ‘/bitrise/deploy/app-release-1.0.144.apk’

However, I’m not sure how I get FastLane to detect my apk, and upload.

Could you assist?

---

<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:** [March 24, 2017, 11:17pm UTC](https://discuss.bitrise.io/t/deployment-issue-to-fastlane/1265/2 "2017-03-24T23:17:47Z")

</div>

> [@uidzer0](#):
>
> However, I’m not sure how I get FastLane to detect my apk, and upload.

Depends completely on your configuration.

Do you use our **Gradle Runner** step to generate the APK? If you do, that step exports the path of the APK into the `BITRISE_APK_PATH` environment variable. As fastlane uses a Ruby based DSL, you can reference env vars there with `ENV['ENV_KEY']`, in this case `ENV['BITRISE_APK_PATH']`.

In Bash scripts (in scripts usually) the format is `$ENV_KEY`, e.g. `$BITRISE_APK_PATH`.

If you have any questions just let us know!
