GoogleJsonResponseException
全部标签 我是YouTubeAPI的新手。我已经在我的eclipse中从github下载并导入了yt-direct-liteyoutubeandroid项目。一切都好。但是,当我运行该项目时,它toast/弹出错误消息:[Error]Accessnotconfigured:TheAPI(youTubeDataAPI)isnotenabledforyourproject.Pleaseusegoogledeveloperconsoletoupdateyourconfiguration.不过,我已经启用了Google+API和YouTubeDataAPIv3。此外,我还生成了APIkey。一切都很好,
我编写了一个在本地环境中运行的小应用程序,没有任何问题,但是在我将该应用程序部署到GoogleAppEngibe之后,它停止运行了。这是客户端的代码:CollectionResponseLongasd=null;try{asd=getEndpoint().getClosePeople(id).execute();}catch(IOExceptione1){//TODOAuto-generatedcatchblocke1.printStackTrace();}我可以看到它在服务器端也可以使用以下代码:@SuppressWarnings({"unchecked","unused"})@Ap
尝试使用GAE中的端点检索列表时,我似乎遇到了错误。错误如下:04-0801:01:30.145:I/System.out(14650):com.google.api.client.googleapis.json.GoogleJsonResponseException:400BadRequest04-0801:01:30.145:I/System.out(14650):{04-0801:01:30.145:I/System.out(14650):"code":400,04-0801:01:30.145:I/System.out(14650):"errors":[04-0801:01:3
我遵循了下面的教程。https://developers.google.com/eclipse/docs/running_and_debugging_2_0这基本上为我现有的应用程序添加了一个GAE后端。然后我尝试下面的例子,在本地开发服务器上运行它,我得到下面发生在之后的异常Noteresult=endpoint.insertNote(note).execute();被调用。com.google.api.client.googleapis.json.GoogleJsonResponseException:404NotFound我的代码如下。packagecom.cloudnotes;
我编写了GAE云端点API,并已成功将它们部署到AppEngine。API在本地以及在AppEngine上部署后都成功运行。生成云端点后,我尝试调用我的Android客户端中的API之一,它抛出“未找到GoogleJSONResponseException404”异常。在API方法中,我使用HttpURLConnection和JAXBunmarshaller调用URL并解码XML响应。代码如下:Stringuri=;URLurl=newURL(uri);HttpURLConnectionconnection=(HttpURLConnection)url.openConnection()