【发布时间】:2012-09-10 13:59:46
【问题描述】:
以下代码在我更新到最新的谷歌客户端api后抛出错误
catch (IOException e) {
if (e instanceof HttpResponseException) {
HttpResponse response = ((HttpResponseException) e)
.getResponse();//The error is here
int statusCode = response.getStatusCode();
在 getResponse 会抛出错误 The method getResponse() is undefined for the type HttpResponseException
我曾尝试回滚到以前版本的 api 但徒劳无功。
【问题讨论】:
标签: android httpresponse google-api-java-client