fastlane: Unable to upload health app bundles to Google Play
Opening a new issue since this one has been closed, but is still happening on the latest fastlane version even with the appropriate health apps declaration filled out in Google Play: https://github.com/fastlane/fastlane/issues/22204
NOTE: This does not happen when the app bundle is manually uploaded to Google Play, the error is specific to Google API uploads via fastlane
New Issue Checklist
- Updated fastlane to the latest version
- I read the Contribution Guidelines
- I read docs.fastlane.tools
- I searched for existing GitHub issues
Issue Description
When uploading an app bundle with health app features to Google Play, where a health apps declaration has been filled out accordingly, this error is thrown on our fastlane upload:
Google Api Error: Invalid request - You must let us know whether your app includes any health features.
I have reached out to Google to try and understand why we would get this error despite following their documentation but have yet to hear back. I saw Google had responded to the original poster indicating that they couldn’t do anything as this is a fastlane issue (and the issue does not occur when uploading an app bundle manually), so I don’t have high hopes if/when they do get back to me.
We need to use the health app features so removing the health permissions from our manifest isn’t an option.
Command executed
upload_to_play_store(
track: 'internal',
skip_upload_screenshots: true,
skip_upload_images: true,
package_name: ENV['APP_BUNDLE_ID'],
aab: "#{ENV['DEPLOY_DIR']}/app-release.aab",
)
Complete output when running fastlane, including the stack trace and command used
+--------------------------------------------------+
| Lane Context |
+------------------+-------------------------------+
| DEFAULT_PLATFORM | all |
| PLATFORM_NAME | all |
| LANE_NAME | all deploy_android_play_store |
+------------------+-------------------------------+
[20:51:55]: Called from Fastfile at line 44
[20:51:55]: ```
[20:51:55]: 42: retryBlock***
[20:51:55]: 43: platform :android do
[20:51:55]: => 44: upload_to_play_store(
[20:51:55]: 45: track: 'internal',
[20:51:55]: 46: skip_upload_screenshots: true,
[20:51:55]: ```
[20:51:55]: Google Api Error: Invalid request - You must let us know whether your app includes any health features.
+-------------------------------------------+
[!] Google Api Error: Invalid request - You must let us know whether your app includes any health features.
| fastlane summary |
+------+----------------------+-------------+
| Step | Action | Time (in s) |
+------+----------------------+-------------+
| 1 | opt_out_usage | 0 |
| 2 | add_extra_platforms | 0 |
| 3 | default_platform | 0 |
| 💥 | upload_to_play_store | 52 |
| 💥 | upload_to_play_store | 55 |
| 💥 | upload_to_play_store | 51 |
+------+----------------------+-------------+
[20:51:55]: fastlane finished with errors
Environment
✅ fastlane environment ✅
Stack
| Key | Value |
|---|---|
| OS | 14.7 |
| Ruby | 3.1.3 |
| Bundler? | false |
| Git | git version 2.39.3 (Apple Git-146) |
| Installation Source | ~/.rbenv/versions/3.1.3/bin/fastlane |
| Host | macOS 14.7 (23H124) |
| Ruby Lib Dir | ~/.rbenv/versions/3.1.3/lib |
| OpenSSL Version | OpenSSL 3.2.1 30 Jan 2024 |
| Is contained | false |
| Is homebrew | false |
| Is installed via Fabric.app | false |
| Xcode Path | /Applications/Xcode.app/Contents/Developer/ |
| Xcode Version | 15.3 |
| Swift Version | 5.10 |
System Locale
| Variable | Value | |
|---|---|---|
| LANG | en_US.UTF-8 | ✅ |
| LC_ALL | ||
| LANGUAGE |
fastlane gems
| Gem | Version | Update-Status |
|---|---|---|
| fastlane | 2.225.0 | ✅ Up-To-Date |
Loaded fastlane plugins:
No plugins Loaded
Loaded gems
| Gem | Version |
|---|---|
| error_highlight | 0.3.0 |
| did_you_mean | 1.6.1 |
| babosa | 1.0.4 |
| colored | 1.2 |
| highline | 2.0.3 |
| commander | 4.6.0 |
| faraday-cookie_jar | 0.0.7 |
| sysrandom | 1.0.5 |
| fastlane-sirp | 1.0.0 |
| gh_inspector | 1.1.3 |
| google-cloud-env | 1.6.0 |
| naturally | 2.2.1 |
| rubyzip | 2.3.2 |
| security | 0.1.5 |
| terminal-notifier | 2.0.0 |
| terminal-table | 3.0.2 |
| tty-cursor | 0.7.1 |
| tty-spinner | 0.9.3 |
| word_wrap | 1.0.0 |
| rouge | 2.0.7 |
| xcpretty | 0.3.0 |
| xcpretty-travis-formatter | 1.0.1 |
| set | 1.0.2 |
| public_suffix | 6.0.1 |
| addressable | 2.8.7 |
| artifactory | 3.0.17 |
| aws-eventstream | 1.3.0 |
| aws-sigv4 | 1.10.1 |
| aws-partitions | 1.1004.0 |
| jmespath | 1.6.2 |
| aws-sdk-core | 3.212.0 |
| aws-sdk-kms | 1.95.0 |
| aws-sdk-s3 | 1.170.1 |
| bundler | 2.5.6 |
| base64 | 0.2.0 |
| nkf | 0.2.0 |
| rexml | 3.3.9 |
| CFPropertyList | 3.0.7 |
| dotenv | 2.8.1 |
| emoji_regex | 3.2.3 |
| excon | 0.112.0 |
| ruby2_keywords | 0.0.5 |
| faraday-retry | 1.0.3 |
| faraday-rack | 1.0.0 |
| faraday-patron | 1.0.0 |
| faraday-net_http_persistent | 1.2.0 |
| faraday-net_http | 1.0.2 |
| multipart-post | 2.4.1 |
| faraday-multipart | 1.0.4 |
| faraday-httpclient | 1.0.1 |
| faraday-excon | 1.1.0 |
| faraday-em_synchrony | 1.0.0 |
| faraday-em_http | 1.0.0 |
| faraday | 1.10.4 |
| faraday_middleware | 1.2.1 |
| domain_name | 0.6.20240107 |
| http-cookie | 1.0.7 |
| fastimage | 2.3.1 |
| httpclient | 2.8.3 |
| multi_json | 1.15.0 |
| jwt | 2.9.3 |
| signet | 0.19.0 |
| os | 1.1.4 |
| googleauth | 1.8.1 |
| mini_mime | 1.1.5 |
| retriable | 3.1.2 |
| trailblazer-option | 0.1.2 |
| declarative | 0.0.20 |
| uber | 0.1.0 |
| representable | 3.2.0 |
| google-apis-core | 0.11.3 |
| google-apis-androidpublisher_v3 | 0.54.0 |
| google-apis-playcustomapp_v1 | 0.13.0 |
| rake | 13.2.1 |
| digest-crc | 0.6.5 |
| google-apis-storage_v1 | 0.31.0 |
| google-apis-iamcredentials_v1 | 0.17.0 |
| google-cloud-errors | 1.4.0 |
| google-cloud-core | 1.7.1 |
| google-cloud-storage | 1.47.0 |
| json | 2.8.1 |
| mini_magick | 4.13.2 |
| optparse | 0.6.0 |
| plist | 3.7.1 |
| simctl | 1.6.10 |
| unicode-display_width | 2.6.0 |
| tty-screen | 0.8.2 |
| nanaimo | 0.4.0 |
| colored2 | 3.1.2 |
| claide | 1.1.0 |
| atomos | 0.1.3 |
| xcodeproj | 1.27.0 |
| forwardable | 1.3.2 |
| logger | 1.6.1 |
| pathname | 0.2.0 |
| shellwords | 0.1.0 |
| cgi | 0.3.5 |
| date | 3.2.2 |
| timeout | 0.2.0 |
| stringio | 3.0.1 |
| securerandom | 0.3.2 |
| uri | 0.11.0 |
| ipaddr | 1.2.4 |
| io-wait | 0.2.1 |
| openssl | 3.0.1 |
| digest | 3.1.0 |
| io-nonblock | 0.1.0 |
| zlib | 2.1.1 |
| resolv | 0.2.1 |
| time | 0.2.0 |
| open-uri | 0.2.0 |
| mutex_m | 0.2.0 |
| net-http | 0.3.0 |
| net-protocol | 0.1.2 |
| english | 0.7.1 |
| erb | 2.2.3 |
| strscan | 3.1.0 |
| abbrev | 0.1.0 |
| io-console | 0.5.11 |
| tempfile | 0.1.2 |
| delegate | 0.2.0 |
| fileutils | 1.6.0 |
| tmpdir | 0.1.2 |
| singleton | 0.1.1 |
| open3 | 0.1.1 |
| prettyprint | 0.1.1 |
| pp | 0.3.0 |
| find | 0.1.1 |
| ostruct | 0.5.2 |
| yaml | 0.2.0 |
| psych | 4.0.4 |
generated on: 2024-11-12
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 8
- Comments: 16
Stumbled upon this thread when trying to solve the same error. Was able to fix this without uploading a build manually by going to the app’s page in the Play Console and going to “Monitor and Improve” -> “Policy and Programs” -> “App content”. The Health policy popped up as a critical issue and I was able to submit it. Waited for review (less than an hour) and then our CI was working again.
The solution for us was to do the following:
See https://github.com/fastlane/fastlane/issues/29512#issuecomment-2760427029
Same issue here
I was looking at the wrong build when I closed before, confirmed this is still happening in Fastlane 2.226 (with a fresh build)
Same issue here.
Same errors. Unable to deliver the Android package via Fastlane due to Google API health feature errors. No issues with the manual upload to Google Play Console.
Hello i also got the same error… i uploaded manually without problem… but when using fastlane, it give the same error You must let us know whether your app includes any health features
Any update on this ?
We don’t use any of the permissions mentioned here https://support.google.com/googleplay/android-developer/answer/13996367?sjid=10541869973483384753-NC#zippy=%2Cwhat-permissi[…]the-health-apps-policy and have filled the health-app consent form as well, submitting the build manually to play-storeworks, but not via fastlane, same error as mentioned in the description under Issue Description
Is there an API or something we can use to update the health declaration for multiple apps? Our organization has a large amount of apps we need to update this for.
Also facing this issue over on my end.