Unknown error occurred
Describe the bug "Unknown error occurred." No additional information provided by the error. Publishing app to Google Play for the first time.
Run r0adkll/upload-google-play@v1
with:
packageName: <REDACTED>
releaseFiles: ./my_app/app/build/app/outputs/bundle/productionRelease/app-production-release.aab
track: qa
inAppUpdatePriority: 0
status: completed
changesNotSentForReview: false
env:
PACKAGE_NAME: <REDACTED>
JAVA_VERSION: 17
FLUTTER_VERSION: [3](https://github.com/mallhar/my_app_be/actions/runs/8953346119/job/24591750256#step:12:3).19.6
APP_DIR: my_app/app
KEY_PROPS_PATH: android/key.properties
KEYSTORE_KEY_PATH: android/app/upload-keystore.jks
GOOGLE_SERVICES_JSON_PATH: android/app/google-services.json
GCP_SERVICE_ACCOUNT_KEY_PATH: android/service-account.json
AAB_PATH: ./my_app/app/build/app/outputs/bundle/productionRelease/app-production-release.aab
JAVA_HOME: /opt/hostedtoolcache/Java_Zulu_jdk/17.0.11-9/x6[4]
FLUTTER_ROOT: /opt/hostedtoolcache/flutter/stable-3.19.6-x64
PUB_CACHE: /home/runner/.pub-cache
Error: Unknown error occurred.
Workflow Step Configuration
- name: 🚀 Deploy to Play Store
id: deploy-play-store
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJson: ${{ secrets.GCP_SERVICE_ACCOUNT_KEY_PATH }}
packageName: ${{ env.PACKAGE_NAME }}
releaseFiles: ${{ env.AAB_PATH }}
track: ${{inputs.google_play_track}}
Same here, tested with track: alpha. A already have a version deployed to Alpha.
Run r0adkll/[email protected] with: packageName: com..app releaseFiles: com..app-Signed.aab track: alpha inAppUpdatePriority: 0 status: completed changesNotSentForReview: false env: DOTNET_ROOT: C:\Program Files\dotnet Error: Unknown error occurred.
Oups, in my case, the problem was just because i was setting a non-existant secret to serviceAccountJsonPlainText: I used the following yml, but I forgot to add my github playstore-service-account repository secret :
- uses: r0adkll/[email protected] name: Upload Android Artifact to Play Console with: serviceAccountJsonPlainText: ${{ secrets.playstore-service-account }} packageName: ${{ inputs.package-name }} releaseFiles: ${{ inputs.package-name }}-Signed.aab track: alpha # set track: production to deploy to production
Yeah, unfortunately for us these error messages come from Google Play APIs, so we can't really do much to figure them out :sweat:
For anyone else experiencing vague problems like this, triple-checking your service account JSON would be a good place to start.