CatHand Blog

アプリ開発やMac弄り

Failed to commit edit, error: googleapi: Error 400: Prices are missing for the following billable countries: GI., badRequest

Google Play API でバイナリをアップロードすると表題のようなエラーが返る場合があります。

Failed to commit edit, error: googleapi: Error 400: Prices are missing for the following billable countries: GI., badRequest

これは、有料アプリで国別の価格が設定されていない場合に発生するようです。

Google Play Console の、 設定 -> 価格設定テンプレート の該当テンプレートの「価格を編集」から、「為替レートを更新」を押すと、全ての国に値が入ります。

ですがこれだけでは解決できなくてさらに↓のエラーが発生しました。

Failed to commit edit, error: googleapi: Error 400: Prices are missing for the following billable countries: LB., badRequest

LBレバノンのようですが、価格設定テンプレートにはこの国が見当たりません。結局アプリの配信地域からレバノンを外すことでエラーを解消することができました。