Tôi đang sử dụng thư viện ứng dụng khách của Google và cố gắng thực hiện yêu cầu GET
tới Google Play API.Thông tin xác thực của Google: Tài khoản nhà phát triển này không sở hữu ứng dụng
GoogleCredential credential= new GoogleCredential.Builder().setTransport(netHttpTransport)
.setJsonFactory(jacksonFactory)
.setServiceAccountId(CLIENT_ID)
.setServiceAccountScopes(SCOPE)
.setServiceAccountPrivateKeyFromP12File(file)
.build();
credential.refreshToken();
HttpRequestFactory requestFactory =netHttpTransport.createRequestFactory(credential);
GenericUrl url = new GenericUrl(URI);
HttpRequest request = requestFactory.buildGetRequest(url);
HttpResponse response = request.execute();
tôi nhận được
{
"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."
}
Ứng dụng của tôi chưa được công bố, có thể gây ra vấn đề?
Tôi có cùng sự cố ... –
Câu hỏi tương tự: http://stackoverflow.com/questions/11115381/unable-to-get-the-subscription-information-from-google-play-android-developer-ap –
Cuối cùng tôi đã giải quyết câu hỏi này, hãy kiểm tra điều này tại: http://stackoverflow.com/questions/11115381/unable-to-get-the-subscription-information-from-google-play-android-developer-ap –