この投稿で説明されているのと同じ問題が発生しています
. ほぼ同じコードを使用しました。以下の方法で、クライアントIDとGoogleサービスアカウントのメールアドレスの両方を試しました
setServiceAccountId(GOOGLE_SERVICE_CLIENT_EMAIL) OR
setServiceAccountId(GOOGLE_CLIENT_ID)
エラーは a/c ID の変更に伴い変化します。クライアントIDを使用すると、エラーが発生します
400 Bad Request { "エラー" : "invalid_grant" }
サービスメールIDを使用すると、エラーは
401 Unauthorized {
"code" : 401, "errors" : [ {
"domain" : "androidpublisher",
"message" : "This developer account does not own the application.",
"reason" : "developerDoesNotOwnApplication" } ], "message" : "This developer account does not own the application." }
何か案が?