question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Unable to find any release file @ release.apk

See original GitHub issue

Describe the bug We are trying to automate the uploading to google play store, however after uploading-artifact, we can find the generated ‘release.apk’ in Github under actions/runs/1559765535, however in the upload-google-play it doesn’t seem to recognise the ‘releasesFiles’ location, doesn’t matter what we try, what are we doing wrong here?

Workflow Step Configuration

name: Deploy to Play Store

Controls when the workflow will run

on:

Triggers the workflow on push or pull request events but only for the main branch

push: branches: - main

A workflow run is made up of one or more jobs that can run sequentially or in parallel

jobs:

This workflow contains a single job called “build”

build: # The type of runner that the job will run on runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: - name: Checkout code # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it uses: actions/checkout@v2

    # Runs a single command using the runners shell
  - name: Generate Release APK
    run: ./gradlew assembleRelease
    
  - name: Sign APK
    uses: r0adkll/sign-android-release@v1
    # ID used to access action output
    id: sign_app
    with:
      releaseDirectory: app/build/outputs/apk/release
      signingKeyBase64: ${{ secrets.SIGNING_KEY }}
      alias: ${{ secrets.ALIAS }}
      keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
      keyPassword: ${{ secrets.KEY_PASSWORD }}
  - uses: actions/upload-artifact@master
    with:
      name: release.apk
      path: ${{steps.sign_app.outputs.signedReleaseFile}}

- uses: actions/upload-artifact@master

with:

name: mapping.txt

path: app/build/outputs/mapping/release/mapping.txt

deploy-play-store: needs: [build] runs-on: ubuntu-latest steps:

# 1

- uses: actions/download-artifact@master

with:

name: release.apk

# - uses: actions/download-artifact@master

# with:

# name: mapping.txt

  # 2
  - name: Publish to Play Store internal test track
    uses: r0adkll/upload-google-play@v1
    with:
      # 3
      serviceAccountJsonPlainText: ${{ secrets.PLAY_SERVICE_ACCOUNT_JSON }}
      packageName: com.timeling.android
      releaseFiles: app/build/outputs/apk/release
      track: internal
      userFraction: 0.5

mappingFile: mapping.txt

Step Debugging

– PUBLISH TO PLAY STORE INTERNAL TEST TRACK Run r0adkll/upload-google-play@v1 Error: Unable to find any release file @ app/build/outputs/apk/release

Note- that’s where it gets stuck

Thanks!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
Saad-Mufticommented, Jun 16, 2022

It doesn’t look like anyone else made this mistake, but it may be worth making sure you are both generating an aab release file (running ./gradlew bundleRelease and checking in app/build/outputs/bundle/release.

I was looking in app/build/outputs/bundle/release but had generated an apk with ./gradlew assembleRelease.

0reactions
Skullcancommented, Jul 28, 2022

I have the same problem. I tried all solutions but with no benefit. 🙁

Try this: https://github.com/r0adkll/upload-google-play/issues/100#issuecomment-1198179813

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error in making release apk or run the app in release mode
If the error is about debug/libs.jar, first build the debug version (and also the profile mode) and then try to Generate signed apk....
Read more >
I can't find apk release file for Play Store
Please go to your Project folder. Then go to app folder. There will be a release folder. Release apk will be there in...
Read more >
Error while trying to release apk to Google Play store
I am trying to release an apk file to Google Play Store using Google Play - Release task. If I use our own...
Read more >
Known issues with Android Studio and Android Gradle Plugin
To fix the issue for all future projects, click File > Close Project. You should see the welcome screen. Then click Configure >...
Read more >
Prepare and roll out a release - Play Console Help
With a release, you can manage your app's Android App Bundle (or APK for apps created before August 2021) and then roll out...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found