# Google Play Deploy: Cannot find APK path even with successful Gradle Runner step

**URL:** <https://discuss.bitrise.io/t/google-play-deploy-cannot-find-apk-path-even-with-successful-gradle-runner-step/16915>\
**Category:** Builds\
**Tags:** android\
**Created:** [May 19, 2021, 10:26pm UTC](https://discuss.bitrise.io/t/google-play-deploy-cannot-find-apk-path-even-with-successful-gradle-runner-step/16915 "2021-05-19T22:26:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![intelivideoappdev](https://avatars.discourse-cdn.com/v4/letter/i/bc79bd/32.png) [@intelivideoappdev](https://discuss.bitrise.io/u/intelivideoappdev)\
**Post date:** [May 19, 2021, 10:26pm UTC](https://discuss.bitrise.io/t/google-play-deploy-cannot-find-apk-path-even-with-successful-gradle-runner-step/16915/1 "2021-05-19T22:26:29Z")

</div>

## Description of the issue

The issue is that the Google Play Deploy step fails because “AppPath: required variable is not present”. However, my Gradle Runner step doesn’t fail and the APK file path in the Google Play Deploy step is $BITRISE\_APK\_PATH which is the default. For some reason, that variable isn’t being generated.  
(All of the configuration steps were followed for allowing access to the APK file on Google Play)

## Environment:

Google Play Deploy Step

## Bitrise.yml:

buildIntelivideoTestApp:  
steps:  
- activate-ssh-key@4.0:  
run\_if: ‘{{getenv “SSH\_RSA\_PRIVATE\_KEY” | ne “”}}’  
- git-clone@6.0: {}  
- file-downloader@1.0:  
inputs:  
- destination: “$HOME/keystores/intelivideothree.key”  
- source: “$BITRISEIO\_ANDROID\_KEYSTORE\_URL”  
- cache-pull@2.5: {}  
- install-missing-android-tools@2.3: {}  
- gradle-runner@1.9:  
inputs:  
- app\_file\_include\_filter: |-  
\*.apk  
\*.aab  
- gradle\_task: assembleIvTestAppRelease  
- sign-apk@1.7: {}  
- deploy-to-bitrise-io@1.13:  
inputs:  
- notify\_user\_groups: none  
- notify\_email\_list: “$BITRISE\_EMAIL”  
- is\_enable\_public\_page: ‘false’  
- google-play-deploy@3:  
inputs:  
- package\_name: com.intelivideotestapp.video  
- track: Production  
- app\_path: “$BITRISE\_APK\_PATH”  
- service\_account\_json\_key\_path: “$BITRISEIO\_BITRISEIO\_SERVICE\_ACCOUNT\_JSON\_KEY\_URL\_GOOGLE\_PLAY\_URL”  
- cache-push@2.5:  
is\_always\_run: true  
description: 'Intelivideo Test app for CI -\> google play ’

## Build Log

Agent version: 1.25.2  
Hostname: prd-latest-usc1b-210519214632-ynqxmkyx7srnc88m6xdkpg  
Start time: 2021-05-19T22:06:54Z  
$ docker “run” “-v” “/var/run/docker.sock:/var/run/docker.sock” “-v” “/bitrise:/bitrise” “-v” “/tmp/bitrise-agent348239381:/.bitrise-config” “-e” “BITRISE\_BUILD\_TRIGGER\_TIMESTAMP=1621462013” “-e” “BITRISE\_APP\_URL=https://app.bitrise.io/app/fd1169d557fd3cc0” “-e” “BITRISE\_APP\_SLUG=fd1169d557fd3cc0” “-e” “BITRISE\_APP\_TITLE=iv-android-apps” “-e” "GIT\_REPOSITORY\_URL=git@github.com:InteliVideo/iv-android-apps.git" “-e” “BITRISEIO\_GIT\_REPOSITORY\_OWNER=InteliVideo” “-e” “BITRISEIO\_GIT\_REPOSITORY\_SLUG=iv-android-apps” “-e” “BITRISEIO\_STACK\_ID=linux-docker-android” “-e” “BITRISE\_BUILD\_NUMBER=641” “-e” “BITRISE\_BUILD\_URL=https://app.bitrise.io/build/40dddac19cac8c21” “-e” “BITRISE\_BUILD\_SLUG=40dddac19cac8c21” “-e” “BITRISE\_IO=true” “-e” “BITRISE\_GIT\_BRANCH=develop” “–privileged” “–network=host” “–name=bitrise-main-container” “bitriseio/android-ndk:pinned” “bitrise” “run” “–config” “/.bitrise-config/bitrise.yml” “–inventory” “/.bitrise-config/bitrise.secrets.yml” “–json-params-base64” “eyJ3b3JrZmxvdyI6ImJ1aWxkSW50ZWxpdmlkZW9UZXN0QXBwIn0=”  
██████╗ ██╗████████╗██████╗ ██╗███████╗███████╗  
██╔══██╗██║╚══██╔══╝██╔══██╗██║██╔════╝██╔════╝  
██████╔╝██║ ██║ ██████╔╝██║███████╗█████╗  
██╔══██╗██║ ██║ ██╔══██╗██║╚════██║██╔══╝  
██████╔╝██║ ██║ ██║ ██║██║███████║███████╗  
╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝╚══════╝╚══════╝  
version: 1.44.0  
INFO[22:06:55] bitrise runs in Secret Filtering mode  
INFO[22:06:55] bitrise runs in CI mode  
INFO[22:06:55] Running workflow: buildIntelivideoTestApp  
Switching to workflow: buildIntelivideoTestApp  
INFO[22:06:55] Step uses latest version – Updating StepLib …  
±-----------------------------------------------------------------------------+

| (0) activate-ssh-key@4.0 |  
±–±--------------------------------------------------------------±---------+  
±–±--------------------------------------------------------------±---------+  
| ✓ | activate-ssh-key@4.0 | 7.38 sec |  
±–±--------------------------------------------------------------±---------+  
▼  
±-----------------------------------------------------------------------------+

| (1) git-clone@6.0 |  
±–±--------------------------------------------------------------±---------+  
±–±--------------------------------------------------------------±---------+  
| ✓ | git-clone@6.0 | 27.97 sec|  
±–±--------------------------------------------------------------±---------+  
▼  
±-----------------------------------------------------------------------------+

| (2) file-downloader@1.0 |  
±–±--------------------------------------------------------------±---------+  
±–±--------------------------------------------------------------±---------+  
| ✓ | file-downloader@1.0 | 2.01 sec |  
±–±--------------------------------------------------------------±---------+  
▼  
±-----------------------------------------------------------------------------+

| (3) cache-pull@2.5 |  
±–±--------------------------------------------------------------±---------+  
±–±--------------------------------------------------------------±---------+  
| ✓ | cache-pull@2.5 | 11.21 sec|  
±–±--------------------------------------------------------------±---------+  
▼  
±-----------------------------------------------------------------------------+

| (4) install-missing-android-tools@2.3 |  
±–±--------------------------------------------------------------±---------+  
±–±--------------------------------------------------------------±---------+  
| ✓ | install-missing-android-tools@2.3 | 42.97 sec|  
±–±--------------------------------------------------------------±---------+  
▼  
±-----------------------------------------------------------------------------+

| (5) gradle-runner@1.9 |  
±–±--------------------------------------------------------------±---------+  
±–±--------------------------------------------------------------±---------+  
| ✓ | gradle-runner@1.9 | 6.3 min |  
±–±--------------------------------------------------------------±---------+  
▼  
±-----------------------------------------------------------------------------+

| (6) sign-apk@1.7 |  
±–±--------------------------------------------------------------±---------+  
±–±--------------------------------------------------------------±---------+  
| ✓ | sign-apk@1.7 | 6.43 sec |  
±–±--------------------------------------------------------------±---------+  
▼  
±-----------------------------------------------------------------------------+

| (7) deploy-to-bitrise-io@1.13 |  
±–±--------------------------------------------------------------±---------+  
±–±--------------------------------------------------------------±---------+  
| ✓ | deploy-to-bitrise-io@1.13 | 9.73 sec |  
±–±--------------------------------------------------------------±---------+  
▼  
±-----------------------------------------------------------------------------+

| (8) google-play-deploy@3 |  
±-----------------------------------------------------------------------------+  
| id: google-play-deploy |  
| version: 3.3.0 |  
| collection: [https://github.com/bitrise-io/bitrise-steplib.git](https://github.com/bitrise-io/bitrise-steplib.git) |  
| toolkit: go |  
| time: 2021-05-19T22:15:05Z |  
±-----------------------------------------------------------------------------+  
| |  
Getting configuration  
Couldn’t create config: failed to parse config:

- AppPath: required variable is not present  
Configs:
- JSONKeyPath: \*\*\*\*\*
- PackageName: com.[REDACTED]testapp.video
- AppPath:
- ExpansionfilePath:
- Track: Production
- UserFraction: 0
- UpdatePriority: 0
- WhatsnewsDir:
- MappingFile:
- ReleaseName:
- Status:  
| |  
±–±--------------------------------------------------------------±---------+  
| x | google-play-deploy@3 (exit code: 1) | 16.62 sec|  
±–±--------------------------------------------------------------±---------+  
| Issue tracker: [https://github.com/bitrise-io/steps-google-play-deploy/issues](https://github.com/bitrise-io/steps-google-play-deploy/issues) |  
| Source: [https://github.com/bitrise-io/steps-google-play-deploy](https://github.com/bitrise-io/steps-google-play-deploy) |  
±–±--------------------------------------------------------------±---------+  
▼  
±-----------------------------------------------------------------------------+

| (9) cache-push@2.5 |  
±–±--------------------------------------------------------------±---------+  
±–±--------------------------------------------------------------±---------+  
| ✓ | cache-push@2.5 | 4.07 sec |  
±–±--------------------------------------------------------------±---------+  
±-----------------------------------------------------------------------------+  
| bitrise summary |  
±–±--------------------------------------------------------------±---------+  
| | title | time (s) |  
±–±--------------------------------------------------------------±---------+  
| ✓ | activate-ssh-key@4.0 | 7.38 sec |  
±–±--------------------------------------------------------------±---------+  
| ✓ | git-clone@6.0 | 27.97 sec|  
±–±--------------------------------------------------------------±---------+  
| ✓ | file-downloader@1.0 | 2.01 sec |  
±–±--------------------------------------------------------------±---------+  
| ✓ | cache-pull@2.5 | 11.21 sec|  
±–±--------------------------------------------------------------±---------+  
| ✓ | install-missing-android-tools@2.3 | 42.97 sec|  
±–±--------------------------------------------------------------±---------+  
| ✓ | gradle-runner@1.9 | 6.3 min |  
±–±--------------------------------------------------------------±---------+  
| ✓ | sign-apk@1.7 | 6.43 sec |  
±–±--------------------------------------------------------------±---------+  
| ✓ | deploy-to-bitrise-io@1.13 | 9.73 sec |  
±–±--------------------------------------------------------------±---------+  
| x | google-play-deploy@3 (exit code: 1) | 16.62 sec|  
±–±--------------------------------------------------------------±---------+  
| Issue tracker: [https://github.com/bitrise-io/steps-google-play-deploy/issues](https://github.com/bitrise-io/steps-google-play-deploy/issues) |  
| Source: [https://github.com/bitrise-io/steps-google-play-deploy](https://github.com/bitrise-io/steps-google-play-deploy) |  
±–±--------------------------------------------------------------±---------+  
| ✓ | cache-push@2.5 | 4.07 sec |  
±–±--------------------------------------------------------------±---------+  
| Total runtime: 8.5 min |  
±-----------------------------------------------------------------------------+  
Submitting anonymized usage information…  
For more information visit:  
[https://github.com/bitrise-io/bitrise-plugins-analytics/blob/master/README.md](https://github.com/bitrise-io/bitrise-plugins-analytics/blob/master/README.md)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [June 18, 2021, 10:39pm UTC](https://discuss.bitrise.io/t/google-play-deploy-cannot-find-apk-path-even-with-successful-gradle-runner-step/16915/2 "2021-06-18T22:39:57Z")

</div>

Closed on June 18, 2021, 10:39pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
