エラーreasonの「cannotUpdateApksOnTrackWithDraftRelease」で検索しても1件もヒットしなかったので記載します。
状況
Google Play Developer Publishing APIを実行した際に下記エラーレスポンスで失敗した。
{
"code" : 403,
"errors" : [ {
"domain" : "androidpublisher",
"message" : "Cannot update the APK configuration of the track when the track has a draft release. Please use UI to rollout or discard the draft release.",
"reason" : "cannotUpdateApksOnTrackWithDraftRelease"
} ],
"message" : "Cannot update the APK configuration of the track when the track has a draft release. Please use UI to rollout or discard the draft release."
}
解決策
Google Play Consoleからアプリの下書きを削除すればOKです。
- Google Play Consoleから対象のアプリを選択
- メニューから「リリース管理」の「アプリのリリース」を選択
- 下書きが残っている場合「リリースを編集」ボタンが表示されるので、編集画面から削除する
以上です