Triple-T / gradle-play-publisher

GPP is Android's unofficial release automation Gradle Plugin. It can do anything from building, uploading, and then promoting your App Bundle or APK to publishing app listings and other metadata.
MIT License
4.13k stars 341 forks source link

Prices are missing for the following billable countries: LB #1031

Closed nicolabeghin closed 2 years ago

nicolabeghin commented 2 years ago

Describe the bug

Trying to upload bundle, the following error is thrown by APIs. image

How To Reproduce

Run gradle

Versions

3.7.0-agp4.2

Tasks executed

What tasks did you run? publishFullGplayBundle.

Expected behavior

Publication happens on Play Store.

Additional context (if a crash, provide stack trace)

Lebanon (LB) pricing is not available at all in Google Play Console.

SUPERCILEX commented 2 years ago

You presumably need to add that currency to your product json file. Or you could just run the bootstrap task again

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

nicolabeghin commented 2 years ago

@SUPERCILEX thanks for your kind reply. I ran boostrapListing gradle task but still same error. Could you provide an hint on the aforementioned product json file? thanks!

SUPERCILEX commented 2 years ago

Inside play/products, you'll have a bunch of json files that define in-app purchase prices, etc. You're probably missing LB somewhere in there. Though if you don't know what I'm talking about, you're probably not using that feature anyway so you should just delete the products directory.

nicolabeghin commented 2 years ago

thanks @SUPERCILEX I cannot find any directory named products

find . -name "products" -print | wc

leads to 0 results. Could it be because I'm leveraging

plugins {
    id 'com.github.triplet.play' version '3.7.0-agp4.2'

as per https://github.com/Triple-T/gradle-play-publisher/issues/1035 since I'm using latest Android Studio 2021.1.1?

image
SUPERCILEX commented 2 years ago

Hmmm, can you run the build command with -S? It'll show a full stack trace so the source of the request can be traced. It could be that you need to fix something in the console before it lets you publish.

nicolabeghin commented 2 years ago

Still nothing, but got around by excluding Lebanon from targeted countries.

My solution was to remove country Lebanon from Countries / Regions until resolved. Console → Production → Country / Regions (tab) → then click on “Remove Countries / Regions”.

ref. https://forums.expo.dev/t/eas-submit-failed-with-google-api-error-invalid-request-prices-are-missing-for-the-following-billable-countries-lb/58581/4

Ticket can be closed, thanks @SUPERCILEX for your continued effort!

SUPERCILEX commented 2 years ago

Awesome!